Control Panel

Nginx Enabled Websites Showing 502 Bad Gateway Plesk Obsidian

If you are getting an error 502 bad gateway by enabling Nginx in Plesk Obsidian, this tutorial will guide to resolve the issue.

1. Disable Nginx using following command:

# plesk sbin nginxmng -d

Now, check that all websites are working again. If it’s start working again, continue with the steps.

This is may because of 7080 and 7081 ports are filtered while enabling Nginx.

2. Access the server using SSH with root user

3. Add 7080 and 7081 ports in firewall using following command:

# iptables -I INPUT -p tcp --dport 7080 --syn -j ACCEPT
# iptables -I INPUT -p tcp --dport 7081 --syn -j ACCEPT

4. Now, enable Nginx:

# plesk sbin nginxmng -e

Verify it by access the websites.

If you still unable to access the websites, Hostnextra’s server management plan will help you.

[Need assistance to fix this error or install tools? We’ll help you.]

Related Articles