Error with hosting a jsp file in Apache Tomcat 7.0.8

I have little experience with hosting and administering jsp sites in Apache Tomcat 7.0.8. Today I tried to host a site Apache Tomcat 7.0.8 but its giving me error like following:

Bad Gateway

The proxy server received an invalid response from an upstream server.

Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.

How do I fix such issues.

Answer

In order to make your site www.mywebsite.com read from webapps/mywebsite.war, it depends what do you use for reverse proxy:

  • Apache Web Server + mod_rewrite
  • Apache Web Server + mod_proxy
  • Apache Web Server + mod_jk

You can find in their manuals how to do that. Tell me what you are using, may be I can give some more information.

Attribution
Source : Link , Question Author : Guru , Answer Author : Daniel Baktiar

Leave a Comment