diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/cgit/templates/vhost.conf | 8 | ||||
-rw-r--r-- | modules/cgit/templates/webapp.conf | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/modules/cgit/templates/vhost.conf b/modules/cgit/templates/vhost.conf index c33efe84..9beab703 100644 --- a/modules/cgit/templates/vhost.conf +++ b/modules/cgit/templates/vhost.conf @@ -1,2 +1,10 @@ Alias /cgit-data /usr/share/cgit ScriptAlias / /var/www/cgi-bin/cgit + +<Directory /usr/share/cgit> + Order allow,deny + Allow from all +</Directory> + +RewriteEngine On +RewriteRule ^(.*)$ /?url=$1 [L,QSA] diff --git a/modules/cgit/templates/webapp.conf b/modules/cgit/templates/webapp.conf index 109b5e3f..4e1d8289 100644 --- a/modules/cgit/templates/webapp.conf +++ b/modules/cgit/templates/webapp.conf @@ -1,8 +1,3 @@ -# cgit configuration -# disabled +# Disable standard cgit configuration #Alias /cgit-data /usr/share/cgit - -<Directory /usr/share/cgit> - Order allow,deny - Allow from all -</Directory> +#ScriptAlias /cgit /var/www/cgi-bin/cgit |