Advertisement
Guest User

Gitlab Nginx to Apache

a guest
Sep 14th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. server {
  2. server_name git.domain.com;
  3.  
  4. root /home/git/gitlab/public;
  5. index index.php index.html index.htm;
  6.  
  7. access_log /var/log/nginx/gitlab.access.log;
  8. error_log /var/log/nginx/gitlab.access.log;
  9.  
  10. location / {
  11. try_files $uri $uri/ /index.php;
  12. }
  13.  
  14. location ~ \.*$ {
  15.  
  16. proxy_set_header X-Real-IP $remote_addr;
  17. proxy_set_header X-Forwarded-For $remote_addr;
  18. proxy_set_header Host $host;
  19. proxy_pass http://127.0.0.1:8080;
  20.  
  21. }
  22.  
  23. location ~ /\.ht {
  24. deny all;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement