nginx does not start after server restart in the RHEL 8
Issue
When restarting the server, the nginx service does not start automatically, as it does not resolve the hostname in the upstream configuration:
upstream test {
ip_hash;
server test.example.com;
The error message:
host not found in upstream "test.example.com" in /etc/nginx/conf.d/configfile.conf:4
After that the server is up, nginx starts without issues.
Environment
- Red Hat Enterprise Linux (RHEL) 8
- nginx 1:1.14.1-8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.