Skip to content

Instantly share code, notes, and snippets.

@balanza
Last active November 8, 2018 09:05
Show Gist options
  • Save balanza/425d01027bf13f8bd4da3ce7f8b59249 to your computer and use it in GitHub Desktop.
Save balanza/425d01027bf13f8bd4da3ce7f8b59249 to your computer and use it in GitHub Desktop.
Apache reverse proxy
<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