Skip to content

Commit 24c43c3

Browse files
committed
Merge pull request #61 from gefd/f-https-only-redirect
Fixes http redirects on https only vhost
2 parents 2f36f6d + d745bf9 commit 24c43c3

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)