1 # Need to turn on negotiation_module
2 <Directory /org/packages.debian.org/www/>
3 Options +MultiViews +FollowSymLinks +Indexes
4 AddHandler type-map var
5 # Make sure that the srm.conf directive is commented out.
6 AddDefaultCharSet utf-8
7 AllowOverride AuthConfig FileInfo
11 ExpiresDefault "access plus 1 day"
12 ExpiresByType image/gif "access plus 1 week"
13 ExpiresByType image/jpeg "access plus 1 week"
16 # you need to keep this in sync with lib/Packages/I18N/Locale.pm
19 AddLanguage en-us .en-us
20 AddLanguage en-gb .en-gb
25 AddCharset ISO-8859-2 .cs
27 AddCharset ISO-8859-1 .da
32 AddCharset ISO-8859-1 .es
34 AddCharset ISO-8859-1 .fi
38 AddCharset ISO-8859-2 .hu
41 AddCharset ISO-8859-1 .it
47 AddCharset ISO-8859-1 .nl
51 AddCharset ISO-8859-2 .pl
53 AddCharset ISO-8859-1 .pt
54 AddLanguage pt-pt .pt_PT
55 AddCharset ISO-8859-1 .pt_PT
56 AddLanguage pt-br .pt_BR
57 AddCharset ISO-8859-1 .pt_BR
61 AddCharset ISO-8859-2 .sk
64 AddCharset ISO-8859-1 .sv_SE
68 AddLanguage zh-CN .zh-cn
69 AddLanguage zh-HK .zh-hk
70 AddLanguage zh-TW .zh-tw
71 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
73 DirectoryIndex index index.html index.shtml index.htm
76 AddType application/rss+xml .rdf .xml
80 ServerAdmin webmaster@debian.org
81 DocumentRoot /org/packages.debian.org/www/
82 ServerName packages.debian.net
83 ErrorLog /var/log/apache/packages.debian.org-error.log
84 CustomLog /var/log/apache/packages.debian.org-access.log combined
86 # ScriptAlias /cgi-bin /org/packages.debian.org/cgi-bin/
88 Alias /cgi-bin/ /org/packages.debian.org/cgi-bin/
90 PerlModule Apache::Registry
93 SetHandler perl-script
94 PerlRequire /org/packages.debian.org/bin/mod_perl-startup
95 PerlInitHandler Apache::Reload
96 PerlHandler Apache::Registry
102 ScriptAlias /cgi-old /org/packages.debian.net/cgi-bin/
106 # we never want to rewrite those URLs
107 RewriteRule ^/cgi-(bin|old)/ - [L]
109 # RewriteRule ^/$ http://www.debian.org/distrib/packages
110 RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N]
111 RewriteRule ^/src:([^/]+)$ http://packages.debian.net/cgi-bin/search_packages.pl?searchon=sourcenames&version=all&exact=1&keywords=$1 [R,L,NE]
112 RewriteRule ^/file:(.+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=searchfiles [R,L,NE]
113 RewriteRule ^/dirs:(.+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=searchfilesanddirs [R,L,NE]
114 RewriteRule ^/word:(.+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=searchword [R,L,NE]
115 RewriteRule ^/list:([^/]+)$ http://packages.debian.org/cgi-bin/search_contents.pl?word=$1&searchmode=filelist [R,L,NE]
117 RewriteCond %{SCRIPT_FILENAME} "!-f"
118 RewriteCond %{SCRIPT_FILENAME} "!-d"
119 RewriteRule ^/([^/]+)$ http://packages.debian.net/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=$1 [R,L,NE]
121 RewriteCond %{SCRIPT_FILENAME} "!-f"
122 RewriteCond %{SCRIPT_FILENAME} "!-d"
123 RewriteRule ^/(.+)/([^/]+)$ /cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=$2&path=$1 [PT]
126 # In case we need to disable the site again
128 # ErrorDocument 404 /index.html
129 # RewriteCond %{SCRIPT_FILENAME} !^/(sbin|cgi-bin|Pics|test)/
130 # RewriteCond %{SCRIPT_FILENAME} !^/favicon.ico
131 # RewriteCond %{SCRIPT_FILENAME} !^/(stable|testing|unstable|experimental)/
132 # RewriteRule . /index.html