Add 'RequestHeader set X-Forwarded-Ssl on' in apache configs

https://github.com/gitlabhq/gitlabhq/issues/6119#issuecomment-131191050
This commit is contained in:
Achilleas Pipinellis
2015-08-15 10:52:31 +03:00
parent 6597121af4
commit 2fa3ec7ab4
2 changed files with 2 additions and 0 deletions

View File

@@ -56,6 +56,7 @@
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA]
RequestHeader set X_FORWARDED_PROTO 'https'
RequestHeader set X-Forwarded-Ssl on
# needed for downloading attachments
DocumentRoot /home/git/gitlab/public

View File

@@ -51,6 +51,7 @@
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA]
RequestHeader set X_FORWARDED_PROTO 'https'
RequestHeader set X-Forwarded-Ssl on
# needed for downloading attachments
DocumentRoot /home/git/gitlab/public