summaryrefslogtreecommitdiff
path: root/apache2/conf.d/local-git.conf
blob: d667e9ecce3a4d3dfa1d4c0d543e4bd8306ff908 (plain)
  1. AddDefaultCharset UTF-8
  2. <Directory /srv/git>
  3. Options FollowSymLinks
  4. AllowOverride None
  5. Order allow,deny
  6. allow from all
  7. </Directory>
  8. <Directory /usr/lib/cgi-bin>
  9. Options ExecCgi
  10. AllowOverride None
  11. Order allow,deny
  12. allow from all
  13. </Directory>
  14. Alias /gitweb/ /usr/share/gitweb/
  15. <Directory /usr/share/gitweb>
  16. Options None
  17. AllowOverride None
  18. Order allow,deny
  19. allow from all
  20. </Directory>
  21. RewriteEngine on
  22. RewriteRule ^/(\?.*)?$ /usr/lib/cgi-bin/gitweb.cgi%{REQUEST_URI} [T=application/x-httpd-cgi,L,NS]