diff options
author | Colin Guthrie <colin@mageia.org> | 2013-06-09 11:08:24 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-06-09 11:08:24 +0000 |
commit | 21b33601b2bce418fbe540c2a9fe1a2940b62a64 (patch) | |
tree | 78547fdeac32afcd51aeb76c3d7f60d2bb3dd7b2 | |
parent | 99ae0159bbe44a13832774e2c55431c47f79d47f (diff) | |
download | puppet-21b33601b2bce418fbe540c2a9fe1a2940b62a64.tar puppet-21b33601b2bce418fbe540c2a9fe1a2940b62a64.tar.gz puppet-21b33601b2bce418fbe540c2a9fe1a2940b62a64.tar.bz2 puppet-21b33601b2bce418fbe540c2a9fe1a2940b62a64.tar.xz puppet-21b33601b2bce418fbe540c2a9fe1a2940b62a64.zip |
cgit: Use ScriptAliasMatch to have better handling of URLs
-rw-r--r-- | modules/cgit/templates/vhost.conf | 5 |
1 files changed, 1 insertions, 4 deletions
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 <Directory /usr/share/cgit> Order allow,deny Allow from all </Directory> - -RewriteEngine On -RewriteRule ^(.*)$ /?url=$1 [L,QSA] |