-
-
Save phoenixwizard/5618698 to your computer and use it in GitHub Desktop.
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 *> | |
AddDefaultCharset off | |
Order deny,allow | |
Deny from all | |
Allow from localhost | |
</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> | |
ServerName localhost | |
ProxyRequests Off | |
<Proxy *> | |
Order Allow,Deny | |
Allow from all | |
</Proxy> | |
ProxyPass / http://localhost:3000/ | |
ProxyPassReverse / http://localhost:3000/ | |
ProxyVia On | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName localhost | |
ProxyRequests Off | |
<Proxy *> | |
Order Allow,Deny | |
Allow from all | |
</Proxy> | |
ProxyPass / http://localhost:3000/ | |
ProxyPassReverse / http://localhost:3000/ | |
ProxyVia On | |
ProxyPreserveHost On | |
RequestHeader set X_FORWARDED_PROTO 'https' | |
SSLEngine On | |
SSLProxyEngine On | |
SSLCertificateFile /etc/ssl/certs/selfsigned.pem | |
SSLProxyMachineCertificateFile /etc/ssl/certs/selfsigned.pem | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment