summaryrefslogtreecommitdiff
path: root/apache2/conf.d/local-git.conf
blob: 8fc553ab89b219c4a2089b659a6c10b1db4f2090 (plain)
  1. Alias /static /usr/share/gitweb/static/
  2. AddDefaultCharset UTF-8
  3. <Directory /srv/git>
  4. Options FollowSymLinks
  5. AllowOverride None
  6. Order allow,deny
  7. allow from all
  8. </Directory>
  9. <Directory /usr/lib/cgi-bin>
  10. Options ExecCgi FollowSymLinks
  11. AllowOverride None
  12. Order allow,deny
  13. allow from all
  14. </Directory>
  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 ^/(gitweb/)?(gitweb\.css|gitweb\.js|git-favicon\.png|git-logo\.png)$ /usr/share/gitweb/$2 [last]
  23. RewriteRule ^/(\?.*)?$ /usr/lib/cgi-bin/gitweb.cgi%{REQUEST_URI} [T=application/x-httpd-cgi,L,NS]