Created
June 7, 2015 11:39
-
-
Save nakatanakatana/43bdab0475d5adcbf235 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 address.domain:443> | |
ServerName address.domain | |
SSLEngine on | |
SSLProxyEngine on | |
RequestHeader set X_FORWARDED_PROTO 'https' | |
SSLCertificateFile /etc/apache2/conf/server.crt | |
SSLCertificateKeyFile /etc/apache2/conf/server.key | |
ErrorLog "/var/log/apache2/gitlab_error.log" | |
TransferLog "/var/log/apache2/gitlab_access.log" | |
ProxyPass / http://address.domain:8081/ | |
ProxyPassReverse / https://address.domain:8081/ | |
# Rewrite 'Location' header to 'https' | |
Header edit Location ^http://address.domain/ https://address.domain/ | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment