Last active
November 8, 2018 09:05
-
-
Save balanza/425d01027bf13f8bd4da3ce7f8b59249 to your computer and use it in GitHub Desktop.
Apache reverse proxy
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
<VirtualHost *:80> | |
ProxyPreserveHost On | |
ServerName mysite.com | |
<Location /> | |
ProxyPass http://0.0.0.0:3000/ | |
ProxyPassReverse http://0.0.0.0:3000/ | |
RequestHeader set Connection "" | |
</Location> | |
</VirtualHost> | |
<VirtualHost *:443> | |
ProxyPreserveHost On | |
ServerName mysite.com | |
SSLEngine on | |
SSLCertificateFile /path/to/certificate.pem | |
SSLCertificateKeyFile /path/to/certificate.key | |
<Location /> | |
ProxyPass http://0.0.0.0:3000/ | |
ProxyPassReverse http://0.0.0.0:3000/ | |
RequestHeader set Connection "" | |
</Location> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment