X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=conf%2Fapache.conf.sed.in;h=bbb24d943fef27941504174d673a0248bba05ee7;hb=ba42b86941d74677cd28f470f5e04a11fc57b1a8;hp=6384605b1666e4f3102a20c4ee5aa4b28f3bdb14;hpb=d2feffced1b7f39f2e67fdd736d2cfbcf84b9e45;p=deb%2Fpackages.git diff --git a/conf/apache.conf.sed.in b/conf/apache.conf.sed.in index 6384605..bbb24d9 100644 --- a/conf/apache.conf.sed.in +++ b/conf/apache.conf.sed.in @@ -74,6 +74,9 @@ # RSS stuff AddType application/rss+xml .rdf .xml + + RemoveType .gz + AddEncoding x-gzip .gz @@ -88,6 +91,7 @@ # PerlModule ModPerl::Registry # PerlTaintCheck On # PerlRequire %TOPDIR%/bin/mod_perl-startup +# PerlSwitches -T # SetHandler perl-script # mod-perl etch @@ -127,6 +131,14 @@ RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N] RewriteRule ^/changelog:(.+)$ http://%SITE%/changelogs/${changelog-url:$1} [R,L,NE] RewriteRule ^/src:([^/]+)$ /source/$1 [R,L,NE] + RewriteRule ^/file:(.+)$ http://%SITE%/search?searchon=contents&keywords=$1 [R,L,NE] + + RewriteCond %{QUERY_STRING} ="" + RewriteCond %TOPDIR%/www%{REQUEST_FILENAME} -f [OR] + RewriteCond %TOPDIR%/www%{REQUEST_FILENAME}.en.html -f [OR] + RewriteCond %TOPDIR%/www%{REQUEST_FILENAME} -l [OR] + RewriteCond %TOPDIR%/www%{REQUEST_FILENAME} -d + RewriteRule . - [L] RewriteRule ^/(.+)$ /cgi-bin/dispatcher.pl/$1 [L,PT]