Permalink
Browse files

Add https only request header option

Adds optional RequestHeader X-Forwarded-Proto "https" for SSL only vhosts to prevent redirects to http:// urls
  • Loading branch information...
1 parent 2d47903 commit 0a9afffbffbf791409bbfc758979703230bb3589 @gefd committed Feb 22, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 apache/gitlab
View
@@ -24,6 +24,9 @@
SSLCertificateKeyFile /etc/apache2/ssl/server.key
#SSLCertificateChainFile /etc/apache2/ssl/cacert.pem
+ # Uncomment the following line to prevent redirects to http on https only vhosts
+ #RequestHeader set X-Forwarded-Proto "https"
+
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
ProxyPreserveHost On

0 comments on commit 0a9afff

Please sign in to comment.