Skip to content

Instantly share code, notes, and snippets.

@masiur
Created June 19, 2021 12:10
Show Gist options
  • Save masiur/5a0632d2705c161f479d64ee72cbfd8a to your computer and use it in GitHub Desktop.
Save masiur/5a0632d2705c161f479d64ee72cbfd8a to your computer and use it in GitHub Desktop.
Apache Proxy and reverse proxy
<VirtualHost *:*>
ProxyPreserveHost On
# Servers to proxy the connection, or;
# List of application servers:
# Usage:
# ProxyPass / http://[IP Addr.]:[port]/
# ProxyPassReverse / http://[IP Addr.]:[port]/
# Example:
ProxyPass / http://0.0.0.0:8080/
ProxyPassReverse / http://0.0.0.0:8080/
ServerName localhost
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment