summaryrefslogtreecommitdiff
path: root/cgit/apache2/conf-available/local-cgit.conf
blob: 12a1850dde4c00fa9dbf18698529329c28c6c571 (plain)
  1. AddDefaultCharset UTF-8
  2. <Directory /usr/share/cgit>
  3. Options None
  4. AllowOverride None
  5. Require all granted
  6. </Directory>
  7. <Directory /etc/local-COMMON/cgit/web/>
  8. Options None
  9. AllowOverride None
  10. Require all granted
  11. </Directory>
  12. Alias /cgit-css/ /usr/share/cgit/
  13. Alias /favicon.ico /usr/share/cgit/favicon.ico
  14. Alias /robots.txt /usr/share/cgit/robots.txt
  15. Alias /cgit-local/ /etc/local-COMMON/cgit/web/
  16. # this requires cgit config: enable-index-links=1
  17. RedirectMatch permanent ^/([^./]+)\.git(/.*) /$1$2
  18. <LocationMatch ^/(?![^./]+\.git/|cgit-css/.*|cgit-local/.*|favicon\.ico|robots\.txt|\.well-known/acme-challenge/)>
  19. ProxyPass unix:/run/uwsgi/app/local-git/socket|uwsgi://local-git
  20. </LocationMatch>