summaryrefslogtreecommitdiff
path: root/apache2/conf.d/local-git.conf
blob: a3894b1c16ef7978112eca7002a64ad0f20a9922 (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. <Directory /usr/share/gitweb>
  15. Options None
  16. AllowOverride None
  17. Order allow,deny
  18. allow from all
  19. </Directory>
  20. RewriteEngine on
  21. RewriteRule ^/(gitweb/)?(gitweb\.css|gitweb\.js|git-favicon\.png|git-logo\.png)$ /usr/share/gitweb/$2 [last]
  22. RewriteRule ^/(\?.*)?$ /usr/lib/cgi-bin/gitweb.cgi%{REQUEST_URI} [T=application/x-httpd-cgi,L,NS]