X-Git-Url: https://git.deb.at/?a=blobdiff_plain;ds=sidebyside;f=conf%2Fapache.conf.sed.in;h=20067de1f5e0de4da3ef16b4f6ba6ea3e3955f8d;hb=42a5a96dd0c539135f2e1cb044a91f9e2f441f5f;hp=c9c302226d38896f384931e11dbcb5b816cbb9d9;hpb=b8b355ae8a369df1fddf23a081282bee7855b250;p=deb%2Fpackages.git diff --git a/conf/apache.conf.sed.in b/conf/apache.conf.sed.in index c9c3022..20067de 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 @@ -122,13 +125,20 @@ RewriteRule ^/[^/]+\.css - [L] RewriteRule ^/[^/]+\.js - [L] -# RewriteRule ^/$ http://www.debian.org/distrib/packages - RewriteRule ^/$ /index.html [L] + RewriteRule ^/$ http://www.debian.org/distrib/packages +# RewriteRule ^/$ /index.html [L] 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] # In case we need to disable the site again