New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Nginx & Varnish & Apache + php-fpm - 502 Bad Gateway

Started by TheQuantumPharaoh, June 30, 2020, 04:40:15 AM

Previous topic - Next topic

TheQuantumPharaoh

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.....
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.

Igor S.

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.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services