]> git.deb.at Git - deb/packages.git/commitdiff
apache.conf: Remove %SITE% from RewriteRule substitutions
authorFrank Lichtenheld <frank@lichtenheld.de>
Fri, 24 Oct 2008 16:30:52 +0000 (18:30 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Fri, 24 Oct 2008 16:30:52 +0000 (18:30 +0200)
This isn't necessary at all and actually caused small problems
during the server move.

conf/apache.conf.sed.in

index 2067d8608d57c4c2e4024c9be1b2b78e8a0ea585..0eac5fa46572dddd3974cc1ea02198661f5d8ac5 100644 (file)
 #   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]