Author Topic: Nginx & Varnish & Apache + php-fpm - 502 Bad Gateway  (Read 5886 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Nginx & Varnish & Apache + php-fpm - 502 Bad Gateway
« 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.

Offline
*****
Re: Nginx & Varnish & Apache + php-fpm - 502 Bad Gateway
« Reply #1 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.
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