diff options
Diffstat (limited to 'cgit/apache2')
-rw-r--r-- | cgit/apache2/conf-available/local-cgit.conf | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cgit/apache2/conf-available/local-cgit.conf b/cgit/apache2/conf-available/local-cgit.conf index 27a6c13..12a1850 100644 --- a/cgit/apache2/conf-available/local-cgit.conf +++ b/cgit/apache2/conf-available/local-cgit.conf @@ -6,13 +6,21 @@ AddDefaultCharset UTF-8 Require all granted </Directory> +<Directory /etc/local-COMMON/cgit/web/> + Options None + AllowOverride None + Require all granted +</Directory> + Alias /cgit-css/ /usr/share/cgit/ Alias /favicon.ico /usr/share/cgit/favicon.ico Alias /robots.txt /usr/share/cgit/robots.txt +Alias /cgit-local/ /etc/local-COMMON/cgit/web/ + # this requires cgit config: enable-index-links=1 RedirectMatch permanent ^/([^./]+)\.git(/.*) /$1$2 -<LocationMatch ^/(?![^./]+\.git/|cgit-css/.*|favicon\.ico|robots\.txt|\.well-known/acme-challenge/)> +<LocationMatch ^/(?![^./]+\.git/|cgit-css/.*|cgit-local/.*|favicon\.ico|robots\.txt|\.well-known/acme-challenge/)> ProxyPass unix:/run/uwsgi/app/local-git/socket|uwsgi://local-git </LocationMatch> |