AddLanguage zh-TW .zh-tw
LanguagePriority en fr de it es ja pl hr da pt pt-pt pt-br fi zh-cn zh-hk zh-tw cs sv sv-se ko no nb ru tr uk eo ar nl hu ro sk el ca en-us en-gb id lt sl bg
- DirectoryIndex index index.html index.shtml index.htm
+ DirectoryIndex index
# RSS stuff
AddType application/rss+xml .rdf .xml
<VirtualHost *>
ServerAdmin webmaster@debian.org
DocumentRoot /org/packages.debian.org/www/
- ServerName packages.debian.org
+ ServerName packages.debian.net
ErrorLog /var/log/apache/packages.debian.org-error.log
CustomLog /var/log/apache/packages.debian.org-access.log combined
- ScriptAlias /cgi-bin /org/packages.debian.org/cgi-bin/
+# ScriptAlias /cgi-bin /org/packages.debian.org/cgi-bin/
+
+ Alias /cgi-bin/ /org/packages.debian.org/cgi-bin/
+
+ PerlModule Apache::Registry
+ PerlTaintCheck On
+ <Location /cgi-bin/>
+ SetHandler perl-script
+ PerlRequire /org/packages.debian.org/bin/mod_perl-startup
+ PerlInitHandler Apache::Reload
+ PerlHandler Apache::Registry
+ Options +ExecCGI
+ PerlSendHeader On
+ allow from all
+ </Location>
+
+ ScriptAlias /cgi-old /org/packages.debian.net/cgi-bin/
RewriteEngine on
+ RewriteLog /var/log/apache/rewrite.log
+ RewriteLogLevel 0
- RewriteRule ^/$ http://www.debian.org/distrib/packages
+ # we never want to rewrite those URLs
+ RewriteRule ^/cgi-(bin|old)/ - [L]
+ RewriteRule ^/Pics/ - [L]
+ RewriteRule ^/[^/]+\.css - [L]
+
+# RewriteRule ^/$ http://www.debian.org/distrib/packages
RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N]
- RewriteRule ^/src:([^/]+)$ http://packages.debian.org/cgi-bin/search_packages.pl?searchon=sourcenames&version=all&exact=1&keywords=$1 [R,L,NE]
- RewriteRule ^/file:(.+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=searchfiles [R,L,NE]
- RewriteRule ^/dirs:(.+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=searchfilesanddirs [R,L,NE]
- RewriteRule ^/word:(.+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=searchword [R,L,NE]
- RewriteRule ^/list:([^/]+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=filelist [R,L,NE]
- RewriteCond %{LA-U:SCRIPT_FILENAME} "!-f"
- RewriteCond %{LA-U:SCRIPT_FILENAME} "!-d"
- RewriteRule ^/([^/]+)$ http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=$1 [R,L,NE]
+ RewriteRule ^/src:([^/]+)$ /search/source/$1 [R,L,NE]
+
+ RewriteRule ^/(.+)$ /cgi-bin/dispatcher.pl/$1 [PT]
# In case we need to disable the site again
#