502 Bad Gateway - Recent Domain transfer

2 posts / 0 new
Last post
#1 Wed, 10/01/2014 - 17:44
Gabo

502 Bad Gateway - Recent Domain transfer

Hi there,

I am here again with another issue, I recently transfer a site to a new domain service and created the domain in virtualmin, uploaded the files and imported the SQL, this is a wordpress installation.

I am getting this 502 error... I already added and tried different ways like

location / { try_files $uri $uri/ /index.php?q=$uri&$args; }

That supposedly prevents several of these errors and others around the net and here in the forums but still the same.

Using Nginx, Centos 6.5, MySQL

Features and plugins enabled:

Mail for domain Log file rotation MySQLdatabase Spam filtering and Virus Webmin Login Nginx SSL Website (not applied to the virtual server) Nginx website

Hope any one can give me a hand with this... Thank you!

Wed, 10/01/2014 - 21:19
andreychek

Howdy,

I'm not too familiar with Nginx, but you may want to review the error logs for that particular domain to see if they offer more information.

There's some information here on what can cause that problem:

http://www.nginxtips.com/502-bad-gateway-using-nginx/

The example that stood out to me is the possibility that Nginx might be configured to proxy requests to Apache.

-Eric