Nginx

If you encounter issues with Nginx or receive a 502 bad gateway error after installing Nginx, check the SELinux status:
getenforce 
If the command returns Enforcing, update the SELinux setting:
sudo setsebool -P httpd_can_network_connect 1
sudo systemctl restart nginx