1 # Need to turn on negotiation_module
2 <Directory %TOPDIR%/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
76 AddType application/rss+xml .rdf .xml
80 ServerAdmin webmaster@debian.org
81 DocumentRoot %TOPDIR%/www/
83 ErrorLog /var/log/apache2/%SITE%-error.log
84 CustomLog /var/log/apache2/%SITE%-access.log combined
86 Alias /cgi-bin/ %TOPDIR%/cgi-bin/
88 PerlModule ModPerl::Registry
90 PerlRequire %TOPDIR%/bin/mod_perl-startup
92 SetHandler perl-script
94 #PerlInitHandler Apache2::Reload
96 PerlInitHandler Apache::Reload
97 PerlHandler ModPerl::Registry
104 RewriteLog /var/log/apache2/rewrite.log
107 # we never want to rewrite those URLs
108 RewriteRule ^/cgi-(bin|old)/ - [L]
109 RewriteRule ^/changelogs/ - [L]
110 RewriteRule ^/Pics/ - [L]
111 RewriteRule ^/[^/]+\.css - [L]
113 # RewriteRule ^/$ http://www.debian.org/distrib/packages
114 RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N]
115 RewriteRule ^/src:([^/]+)$ /source/$1 [R,L,NE]
117 RewriteRule ^/(.+)$ /cgi-bin/dispatcher.pl/$1 [PT]
119 # In case we need to disable the site again
121 # ErrorDocument 404 /index.html
122 # RewriteCond %{SCRIPT_FILENAME} !^/(sbin|cgi-bin|Pics|test)/
123 # RewriteCond %{SCRIPT_FILENAME} !^/favicon.ico
124 # RewriteCond %{SCRIPT_FILENAME} !^/(stable|testing|unstable|experimental)/
125 # RewriteRule . /index.html