Bad Gateway 502 error with Apache mod_proxy and Tomcat

前端 未结 10 1727
北海茫月
北海茫月 2020-12-12 16:24

We\'re running a web app on Tomcat 6 and Apache mod_proxy 2.2.3. Seeing a lot of 502 errors like this:

Bad Gateway! The proxy server received an in

10条回答
  •  青春惊慌失措
    2020-12-12 16:48

    I know this does not answer this question, but I came here because I had the same error with nodeJS server. I am stuck a long time until I found the solution. My solution just adds slash or /in end of proxyreserve apache.

    my old code is:

    ProxyPass / http://192.168.1.1:3001
    ProxyPassReverse / http://192.168.1.1:3001
    

    the correct code is:

    ProxyPass / http://192.168.1.1:3001/
    ProxyPassReverse / http://192.168.1.1:3001/
    

提交回复
热议问题