Created
November 23, 2011 23:02
-
-
Save rosswarren/1390196 to your computer and use it in GitHub Desktop.
Proxy Apache to Thin with SSL
This file contains 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 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