Advertisement
Guest User

VirHost

a guest
Dec 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName gitlab.example.com
  3. ServerSignature Off
  4.  
  5. ProxyPreserveHost On
  6.  
  7. <Location />
  8. Order deny,allow
  9. Allow from all
  10.  
  11. ProxyPassReverse http://127.0.0.1:8080
  12. ProxyPassReverse http://gitlab.example.com/
  13. </Location>
  14.  
  15. RewriteEngine on
  16. RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  17. RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA]
  18.  
  19. # needed for downloading attachments
  20. DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public
  21.  
  22. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement