The Nginx configuration is perfect but sometimes it doesn’t delegate requests to other servers, perhaps you are wondering why this issue occurs.

what’s up guys, welcome to automationcalling.com!

For eg:

server{
        listen 80 default_server;
        listen [::]:80 default_server;

        server_name domainname www.domainname;

        location / {
                proxy_pass http://127.0.0.1:8080;
        }
}

The issue could be the following reason:

  • Ensure HTTP and HTTPS ports enabled 80 and 443 in firewall as permanent
  • verify the Nginx configuration loads successfully by passing the command “sudo nginx -t”
  • execute command “getenforce” and verify it returns “Permissive”.
    • For a permanent solution supply the following command sed -i ‘s/SELINUX=enforcing/SELINUX=permissive/g’ /etc/selinux/config

To know more about SELinux: refer to the link: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/using_selinux/getting-started-with-selinux_using-selinux

Stay tune for more blogs and troubshooting docs.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s