summaryrefslogtreecommitdiff
path: root/apache2/conf.d/local-cgit.conf
blob: e3cd43ce3393ff394c8a37225edfd165260aa366 (plain)
  1. AddDefaultCharset UTF-8
  2. <Directory /srv/git>
  3. Options None
  4. AllowOverride None
  5. Order allow,deny
  6. allow from all
  7. </Directory>
  8. <Directory /usr/lib/cgit>
  9. Options ExecCgi FollowSymLinks
  10. AllowOverride None
  11. Order allow,deny
  12. allow from all
  13. </Directory>
  14. <Directory /usr/share/cgit>
  15. Options None
  16. AllowOverride None
  17. Order allow,deny
  18. allow from all
  19. </Directory>
  20. RewriteEngine on
  21. RewriteRule ^/(cgit-css/)?(cgit\.(css|png)|favicon\.ico|robots.txt)$ /usr/share/cgit/$2 [last]
  22. RewriteCond %{REQUEST_FILENAME} !-f
  23. RewriteRule ^(/.*)?$ /usr/lib/cgit/cgit.cgi$1 [T=application/x-httpd-cgi,L,NS]