diff options
author | Frank Lichtenheld <frank@lichtenheld.de> | 2006-02-05 16:59:48 +0000 |
---|---|---|
committer | Frank Lichtenheld <frank@lichtenheld.de> | 2006-02-05 16:59:48 +0000 |
commit | 5ca21f1ba07a6b559395bec8d6bc1e528eb238d1 (patch) | |
tree | b96a9a9c53e9eb008dcef893e4f9f3b333e51bb2 /conf | |
parent | 87124f967c3da82618899b3d2c114981b12ffb7f (diff) |
* Move coniguratio stuf to own module
* Overhaul archive handling for show_package
* Begin to make the URL handling somewhat consistent
* Fix source files handling, which was broken by the last upload
Diffstat (limited to 'conf')
-rw-r--r-- | conf/apache.conf | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/conf/apache.conf b/conf/apache.conf index f6e9e03..40c890d 100644 --- a/conf/apache.conf +++ b/conf/apache.conf @@ -102,6 +102,8 @@ ScriptAlias /cgi-old /org/packages.debian.net/cgi-bin/ RewriteEngine on + RewriteLog /var/log/apache/rewrite.log + RewriteLogLevel 0 # we never want to rewrite those URLs RewriteRule ^/cgi-(bin|old)/ - [L] @@ -116,11 +118,19 @@ RewriteCond %{SCRIPT_FILENAME} "!-f" RewriteCond %{SCRIPT_FILENAME} "!-d" - RewriteRule ^/([^/]+)$ http://packages.debian.net/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=$1 [R,L,NE] + RewriteRule ^/([^/]+)$ /cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=$1 [PT] RewriteCond %{SCRIPT_FILENAME} "!-f" RewriteCond %{SCRIPT_FILENAME} "!-d" - RewriteRule ^/(.+)/([^/]+)$ /cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=$2&path=$1 [PT] + RewriteRule ^/search/([^/]+)$ /cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=$1 [PT] + + RewriteCond %{SCRIPT_FILENAME} "!-f" + RewriteCond %{SCRIPT_FILENAME} "!-d" + RewriteRule ^/search/(.+)/([^/]+)$ /cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=$2&path=$1 [PT] + + RewriteCond %{SCRIPT_FILENAME} "!-f" + RewriteCond %{SCRIPT_FILENAME} "!-d" + RewriteRule ^/(.+)/([^/]+)$ /cgi-bin/show_package.pl?searchon=names&version=all&exact=1&package=$2&path=$1 [PT] # In case we need to disable the site again |