Apache error 503 when using ProxyPass:
Posted by jpluimers on 2016/12/05
When using ProxyPass (for instance within a Location) in Apache and you get an http error 503 (service unavailable), then usually the page/service to which the proxy directs to is dead.
I had this when shellinabox (forked from the old Google code repo) died on me.
In addition, ensure your ProxyPass statements contain a slash at the end your you will get a http error 502 (bad gateway):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Proxy Error | |
| The proxy server received an invalid response from an upstream server. | |
| The proxy server could not handle the request GET /account/login. | |
| Reason: DNS lookup failure for: 192.168.71.46:8080account | |
| Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Location /shell> | |
| ProxyPass http://localhost:4200/ | |
| Require all granted | |
| </Location> | |
| <Location /> | |
| ProxyPass http://192.168.71.46:8080/ | |
| Require all granted | |
| </Location> |
–jeroen
via:






Leave a comment