Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Last active October 14, 2015 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpluimers/cb800ac6388e2c4094e9 to your computer and use it in GitHub Desktop.
Save jpluimers/cb800ac6388e2c4094e9 to your computer and use it in GitHub Desktop.
Apache2 ProxyPass needs slash at the end in order to prevent 502 errors (bad gateway).
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.
<Location /shell>
ProxyPass http://localhost:4200/
Require all granted
</Location>
<Location />
ProxyPass http://192.168.71.46:8080/
Require all granted
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment