From 21b33601b2bce418fbe540c2a9fe1a2940b62a64 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 9 Jun 2013 11:08:24 +0000 Subject: cgit: Use ScriptAliasMatch to have better handling of URLs --- modules/cgit/templates/vhost.conf | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/cgit/templates/vhost.conf b/modules/cgit/templates/vhost.conf index 9beab703..d2385084 100644 --- a/modules/cgit/templates/vhost.conf +++ b/modules/cgit/templates/vhost.conf @@ -1,10 +1,7 @@ Alias /cgit-data /usr/share/cgit -ScriptAlias / /var/www/cgi-bin/cgit +ScriptAliasMatch ^(.*) /var/www/cgi-bin/cgit$1 Order allow,deny Allow from all - -RewriteEngine On -RewriteRule ^(.*)$ /?url=$1 [L,QSA] -- cgit v1.2.1