Control Web Panel

WebPanel => Apache => Nginx => Topic started by: TheQuantumPharaoh on June 30, 2020, 04:40:15 AM

Title: Nginx & Varnish & Apache + php-fpm - 502 Bad Gateway
Post by: TheQuantumPharaoh on June 30, 2020, 04:40:15 AM
I am wanting to try out Nginx as I heard its faster for wordpress sites so I used the "Webserver Settings > Webserver Domain Conf" in the CWP admin panel and set one of my domains to "Nginx & Varnish & Apache + php-fpm". This domain is now getting an error "502 Bad Gateway". Tried restarting Apache, uninstalled and reinstalled SSL cert, opened multiple ports, and even turned off Mod Security for this domain and nothing has worked. Here is the error log im getting.....
Code: [Select]
2020/06/30 00:11:16 [error] 10151#10151: *16156 connect() failed (111: Connection refused) while connecting to upstream, client: xx.xxx.xxx.xxx, server: sunsetterwaste.com, request: "GET / HTTP/1.1", upstream: "https://127.0.0.1:9980/", host: "sunsetterwaste.com"
Any help is greatly appreciated.
Title: Re: Nginx & Varnish & Apache + php-fpm - 502 Bad Gateway
Post by: Igor S. on September 05, 2020, 06:51:47 AM
It seems like you must have something running on port  9980 (https://127.0.0.1:9980). Check the nginx configuration, I guess you have a manually changes.