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/
105 RewriteLog /var/log/apache/rewrite.log
108 # we never want to rewrite those URLs
109 RewriteRule ^/cgi-(bin|old)/ - [L]
110 RewriteRule ^/Pics/ - [L]
111 RewriteRule ^/[^/]+\.css - [L]
113 RewriteCond %{DOCUMENT_ROOT}/%{SCRIPT_FILENAME} "-f"
116 RewriteCond %{DOCUMENT_ROOT}/%{SCRIPT_FILENAME}.en.html "-f"
119 RewriteCond %{DOCUMENT_ROOT}/%{SCRIPT_FILENAME} "-d"
122 # RewriteRule ^/$ http://www.debian.org/distrib/packages
123 RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N]
124 RewriteRule ^/src:([^/]+)$ /search/source/$1 [R,L,NE]
126 RewriteRule ^/(.+)$ /cgi-bin/dispatcher.pl/$1 [PT]
128 # In case we need to disable the site again
130 # ErrorDocument 404 /index.html
131 # RewriteCond %{SCRIPT_FILENAME} !^/(sbin|cgi-bin|Pics|test)/
132 # RewriteCond %{SCRIPT_FILENAME} !^/favicon.ico
133 # RewriteCond %{SCRIPT_FILENAME} !^/(stable|testing|unstable|experimental)/
134 # RewriteRule . /index.html