How can I diagnose a "502 Bad Gateway" response from an Apache/Tomcat configuration?
Posted
by Structure
on Server Fault
See other posts from Server Fault
or by Structure
Published on 2010-06-01T08:26:35Z
Indexed on
2010/06/01
8:35 UTC
Read the original article
Hit count: 359
I just finished up configuring a fairly default configuration of Tomcat. My Apache configuration was pre-existing and post-tomcat it still has no issues. I am using mod_jk to (if I am saying this correctly) interface between Apache and Tomcat and have my conf files setup for my workers, etc.
I put my test file (Simply: http://tomcat.apache.org/tomcat-4.1-doc/appdev/sample/web/hello.jsp) into my tomcat/webapps/ directory and then call it via http://localhost/test/hello.jsp. From here Apache returns a "502 Bad Gateway" response.
I confirmed this via the Apache logs, but beyond that I have no idea how to diagnose the issue. I assume the 502 is because Tomcat did not respond. I'd like to confirm if Tomcat received the request, but cannot locate the log file.
At this point I had thought my installation was complete, so not sure where to go from here. Any input would be appreciated.
© Server Fault or respective owner