X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=conf%2Fapache.conf.sed.in;h=c71ef22956aedbf805635024cdc7dd6b9adbb541;hb=648a333fa9bee495e2a16843f3b5c61957828f11;hp=2b6913b8aa267e5a61dc1f8456637b6bb47acddb;hpb=da0b1ee79860ccd17033f11da212178d51ce9f47;p=deb%2Fpackages.git diff --git a/conf/apache.conf.sed.in b/conf/apache.conf.sed.in index 2b6913b..c71ef22 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,12 +91,13 @@ PerlModule ModPerl::Registry PerlTaintCheck On PerlRequire %TOPDIR%/bin/mod_perl-startup + PerlSwitches -T SetHandler perl-script # mod-perl etch - #PerlInitHandler Apache2::Reload + PerlInitHandler Apache2::Reload # mod-perl sarge - PerlInitHandler Apache::Reload + #PerlInitHandler Apache::Reload PerlHandler ModPerl::Registry Options +ExecCGI PerlSendHeader On @@ -126,6 +130,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]