Results 1 to 6 of 6
Thread: 502 Bad Gateway
-
01-27-2014, 04:59 PM #1Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 99
502 Bad Gateway
Hi
i have dedicated server with WHM/Cpanel with nginx plugin on it.
today i add new website but for some reason i get
502 Bad Gateway
but when i test with html file work.
How i can fiz that problem?
-
01-27-2014, 05:02 PM #2Web Hosting Master
- Join Date
- Sep 2010
- Location
- /usr/bin/fail
- Posts
- 859
You might try and rebuild the nginx host file. Its a good chance the new domain didn't get added correctly.
-
01-27-2014, 05:16 PM #3Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 99
-
01-27-2014, 06:46 PM #4Knowledge is all
- Join Date
- Jul 2005
- Location
- here, there, where?
- Posts
- 4,101
Bad gateway usually means nginx can't connect to the proxy host set. Check the nginx configuration and see what it has for proxy_host and confirm it matches the domain and correct port apache is on.
-Steven | Cooini, LLC
"It is the mark of an educated mind to be able to entertain a thought without accepting it" -Aristotle
-
01-27-2014, 07:07 PM #5Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 99
-
01-27-2014, 09:16 PM #6Knowledge is all
- Join Date
- Jul 2005
- Location
- here, there, where?
- Posts
- 4,101
I do not recall right off where that plug puts the config files, but check under /etc/nginx/sites-enabled and it should be a symlink back to the config file. Open that and under the location /, it should have proxy_host http://domain.com:8081/ . Also, check the error logs under /var/log/nginx/error.log (again, might be different location/filename) as it may show more info there.
-Steven | Cooini, LLC
"It is the mark of an educated mind to be able to entertain a thought without accepting it" -Aristotle
Similar Threads
-
502 Bad Gateway
By -liquid- in forum VPS HostingReplies: 3Last Post: 12-27-2013, 01:53 PM -
502 Bad Gateway-Nginx
By mastermovie in forum Hosting Software and Control PanelsReplies: 9Last Post: 11-01-2013, 08:07 AM -
502 Bad Gateway nginx/1.0.15
By KnowledgeHub in forum VPS HostingReplies: 17Last Post: 03-30-2013, 03:14 AM -
502 Bad Gateway Error - Please Help :(
By jani in forum Web HostingReplies: 10Last Post: 10-11-2010, 08:42 PM -
502 - Bad Gateway Error
By DaBoss in forum Web HostingReplies: 3Last Post: 05-11-2003, 02:10 AM