FireBurn

Untitled

Jun 8th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #Module dependencies
  2. LoadModule rewrite_module modules/mod_rewrite.so
  3. LoadModule proxy_module modules/mod_proxy.so
  4. LoadModule proxy_http_module modules/mod_proxy_http.so
  5.  
  6. # This section is only needed if you want to redirect http traffic to https.
  7. # You can live without it but clients will have to type in https:// to reach gitlab.
  8.  
  9. Listen 80
  10.  
  11. <VirtualHost *:80>
  12. ServerName gitlab.company.com
  13. ServerSignature Off
  14.  
  15. RewriteEngine on
  16. RewriteCond %{HTTPS} !=on
  17. RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
  18. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment