Skip to content

Commit 0a9afff

Browse files
committed
Add https only request header option
Adds optional RequestHeader X-Forwarded-Proto "https" for SSL only vhosts to prevent redirects to http:// urls
1 parent 2d47903 commit 0a9afff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apache/gitlab

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
SSLCertificateKeyFile /etc/apache2/ssl/server.key
2525
#SSLCertificateChainFile /etc/apache2/ssl/cacert.pem
2626

27+
# Uncomment the following line to prevent redirects to http on https only vhosts
28+
#RequestHeader set X-Forwarded-Proto "https"
29+
2730
ProxyPass / http://127.0.0.1:3000/
2831
ProxyPassReverse / http://127.0.0.1:3000/
2932
ProxyPreserveHost On

0 commit comments

Comments
 (0)