nginx does not start after server restart in the RHEL 8

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content