From: Frank Lichtenheld Date: Fri, 24 Oct 2008 16:30:52 +0000 (+0200) Subject: apache.conf: Remove %SITE% from RewriteRule substitutions X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=commitdiff_plain;h=8dbc5bba30acbe204f23fb639204b8c0c509d354 apache.conf: Remove %SITE% from RewriteRule substitutions This isn't necessary at all and actually caused small problems during the server move. --- diff --git a/conf/apache.conf.sed.in b/conf/apache.conf.sed.in index 2067d86..0eac5fa 100644 --- a/conf/apache.conf.sed.in +++ b/conf/apache.conf.sed.in @@ -116,12 +116,12 @@ # 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:([^/]+)$ http://%SITE%/search?searchon=sourcenames&keywords=$1 [R,L,NE] - RewriteRule ^/file:(.+)$ http://%SITE%/search?searchon=contents&keywords=$1 [R,L,NE] + RewriteRule ^/changelog:(.+)$ /changelogs/${changelog-url:$1} [R,L,NE] + RewriteRule ^/src:([^/]+)$ /search?searchon=sourcenames&keywords=$1 [R,L,NE] + RewriteRule ^/file:(.+)$ /search?searchon=contents&keywords=$1 [R,L,NE] RewriteCond %{REQUEST_URI} !^/search$ [OR] RewriteCond %{QUERY_STRING} ^$ - RewriteRule ^/([^/]+)$ http://%SITE%/search?keywords=$1 [R,L,NE] + RewriteRule ^/([^/]+)$ /search?keywords=$1 [R,L,NE] RewriteCond %{QUERY_STRING} ="" RewriteCond %TOPDIR%/www%{REQUEST_FILENAME} -f [OR]