Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Module dependencies
- LoadModule rewrite_module modules/mod_rewrite.so
- LoadModule proxy_module modules/mod_proxy.so
- LoadModule proxy_http_module modules/mod_proxy_http.so
- # This section is only needed if you want to redirect http traffic to https.
- # You can live without it but clients will have to type in https:// to reach gitlab.
- Listen 80
- <VirtualHost *:80>
- ServerName gitlab.company.com
- ServerSignature Off
- RewriteEngine on
- RewriteCond %{HTTPS} !=on
- RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment