2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
6 # Need to turn on negotiation_module
7 <Directory <%= wwwdo_document_root %>/>
8 Options +MultiViews +FollowSymLinks +Indexes
9 AddHandler type-map var
10 # Make sure that the srm.conf directive is commented out.
12 AllowOverride AuthConfig FileInfo
14 # Serve icons as image/x-icon
15 AddType image/x-icon .ico
17 # Serve RSS feeds as application/rss+xml
18 AddType application/rss+xml .rdf
22 ExpiresDefault "access plus 1 day"
23 ExpiresByType image/gif "access plus 1 week"
24 ExpiresByType image/jpeg "access plus 1 week"
25 ExpiresByType image/png "access plus 1 week"
26 ExpiresByType image/x-icon "access plus 1 week"
28 # FileEtag needs to be the same across mirrors (used for caching, ignore inode)
31 # language stuff, for web site translations
32 # for boot-floppies docs only: sk
34 AddLanguage en-us .en-us
35 AddLanguage en-gb .en-gb
60 AddLanguage pt-br .pt-br
69 AddLanguage zh-CN .zh-cn
70 AddLanguage zh-HK .zh-hk
71 AddLanguage zh-TW .zh-tw
72 LanguagePriority en fr de it es ja pl hr da pt pt-br fi zh-cn zh-hk zh-tw cs sv ko no nb ru tr eo ar nl hu ro sk el ca en-us en-gb id lt sl bg uk hy vi
74 DirectoryIndex maintenance index index.html index.shtml index.htm
81 ForceType application/pdf
89 <VirtualHost <%= vhost_listen %> >
91 ServerAdmin webmaster@debian.org
93 ServerAlias www.at.debian.org
94 ServerAlias www.au.debian.org
95 ServerAlias www.bg.debian.org
96 ServerAlias www.br.debian.org
97 ServerAlias www.cn.debian.org
98 ServerAlias www.de.debian.org
99 ServerAlias www.es.debian.org
100 ServerAlias www.fr.debian.org
101 ServerAlias www.hk.debian.org
102 ServerAlias www.id.debian.org
103 ServerAlias www.jp.debian.org
104 ServerAlias www.nl.debian.org
105 ServerAlias www.pl.debian.org
106 ServerAlias www.ru.debian.org
107 ServerAlias www.ua.debian.org
108 ServerAlias www.uk.debian.org
109 ServerAlias www.us.debian.org
110 ServerAlias www.za.debian.org
112 ServerAlias www.debian.net
113 ServerAlias debian.net
115 ServerAlias www.debian.eu
116 ServerAlias debian.eu
118 ServerAlias www.debian.com
119 ServerAlias debian.com
121 ServerAlias debian.us
122 ServerAlias www.debian.us
124 ServerAlias debian.gr
125 ServerAlias www.debian.gr
127 ServerAlias www.debian.es
128 ServerAlias debian.es
130 ServerAlias www.debian.org.tw
131 ServerAlias debian.org.tw
133 ServerAlias www.debian.at
134 ServerAlias www.debian.de
135 ServerAlias newwww.deb.at
137 DocumentRoot <%= wwwdo_document_root %>/
138 ErrorLog /var/log/apache2/www-other.debian.org-error.log
139 CustomLog /var/log/apache2/www-other.debian.org-access.log privacy
140 RewriteLog /var/log/apache2/www-other.debian.org-redirect.log
144 RewriteRule ^/(.*)$ http://www.debian.org/$1 [R=301,L]
149 <Macro common-www.d.o>
150 ServerName www.debian.org
151 ServerAdmin webmaster@debian.org
152 ServerAlias www-*.debian.org
153 DocumentRoot <%= wwwdo_document_root %>/
155 # CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
156 # document that was negotiated on the basis of content. This asks proxy
157 # servers not to cache the document. Uncommenting the following line disables
158 # this behavior, and proxies will be allowed to cache the documents.
159 CacheNegotiatedDocs On
162 ErrorDocument 404 /devel/website/errors/404
163 RewriteCond %{DOCUMENT_ROOT}/devel/website/errors/404.$2.html -f
164 RewriteRule ^/(?!devel/website/errors/)(.*/)?404\.(.+)\.html$ /devel/website/errors/404.$2.html [L]
166 # the joys of backwards compatibility
167 RedirectPermanent /cgi-bin/cvsweb http://cvs.debian.org
168 RedirectPermanent /Lists-Archives http://lists.debian.org
169 RedirectPermanent /search http://search.debian.org
170 RedirectPermanent /Packages http://packages.debian.org
171 RedirectPermanent /lintian http://lintian.debian.org
173 RedirectPermanent /SPI http://www.spi-inc.org
174 # RedirectPermanent /OpenHardware http://www.openhardware.org
175 RedirectPermanent /OpenSource http://www.opensource.org
177 RedirectPermanent /Bugs/db/ix/pseudopackages.html /Bugs/pseudo-packages
179 RewriteRule ^/Bugs/db/pa/l([^/]+).html$ http://bugs.debian.org/$1
180 RewriteRule ^/Bugs/db/[[:digit:]][[:digit:]]/([[:digit:]][[:digit:]][[:digit:]]+).html$ http://bugs.debian.org/$1
181 RewriteRule ^/Bugs/db/ma/l([^/]+).html$ http://bugs.debian.org/cgi-bin/pkgreport.cgi?maintenc=$1
183 <IfModule mod_userdir.c>
187 RedirectPermanent /devel/todo/ /devel/wnpp/help_requested_bypop
188 RedirectPermanent /doc/FAQ /doc/manuals/debian-faq
189 RedirectPermanent /doc/manuals/debian-fr-howto /doc/manuals/fr/debian-fr-howto
190 RedirectPermanent /doc/manuals/reference /doc/manuals/debian-reference
191 RedirectPermanent /doc/packaging-manuals/developers-reference /doc/manuals/developers-reference
192 RedirectPermanent /doc/packaging-manuals/packaging-tutorial /doc/manuals/packaging-tutorial
193 RedirectPermanent /doc/prospective-packages /devel/wnpp/
194 RedirectPermanent /devel/maintainer_contacts /intro/organization
195 RedirectPermanent /devel/debian-installer/gtk-frontend http://wiki.debian.org/DebianInstaller/GUI
196 RedirectPermanent /zh/ /international/Chinese/
197 RedirectPermanent /chinese/ /international/Chinese/
198 RedirectPermanent /devel/help /devel/join/
199 RedirectPermanent /distrib/books /doc/books
200 RedirectPermanent /distrib/floppyinst /distrib/netinst
201 RedirectPermanent /distrib/netboot /distrib/netinst
202 RedirectPermanent /distrib/vendors /CD/vendors/
203 RedirectPermanent /distrib/cd /CD/
204 RedirectPermanent /distrib/cdinfo /CD/vendors/info
205 RedirectPermanent /related_links /misc/related_links
206 RedirectPermanent /ports/laptops /misc/laptops/
207 RedirectPermanent /misc/README.mirrors /mirror/list
208 RedirectPermanent /misc/README.non-US /mirror/list.non-US
209 RedirectPermanent /intl /international
210 RedirectPermanent /ports/armel /ports/arm
211 RedirectPermanent /ports/armhf /ports/arm
212 RedirectPermanent /ports/mipsel /ports/mips
213 RedirectPermanent /ports/kfreebsd-amd64 /ports/kfreebsd-gnu
214 RedirectPermanent /ports/kfreebsd-i386 /ports/kfreebsd-gnu
215 RedirectPermanent /ports/sparc64 /ports/sparc
216 RedirectPermanent /ports/s390x /ports/s390
217 RedirectPermanent /mirror/mirrors_full.html /mirror/list-full.html
218 RedirectPermanent /mirrors /mirror
219 RedirectPermanent /News/project /News/weekly
220 RedirectPermanent /releases/2.0 /releases/hamm
221 RedirectPermanent /releases/2.1 /releases/slink
222 RedirectPermanent /releases/2.2 /releases/potato
223 RedirectPermanent /releases/3.0 /releases/woody
224 RedirectPermanent /releases/3.1 /releases/sarge
225 RedirectPermanent /releases/4.0 /releases/etch
226 RedirectPermanent /releases/5.0 /releases/lenny
227 RedirectPermanent /releases/6.0 /releases/squeeze
228 RedirectPermanent /releases/7 /releases/wheezy
229 RedirectPermanent /releases/8 /releases/jessie
230 RedirectPermanent /releases/unstable /releases/sid
232 RewriteRule ^/ports/freebsd(.*) /ports/kfreebsd-gnu/ [R=301]
233 RewriteRule ^/devel/debian-installer/report-template(.*) /releases/stable/i386/ch05s04.html#submit-bug [NE,R=301]
234 RewriteRule ^/devel/debian-installer/hooks(.*) http://d-i.alioth.debian.org/doc/internals/apb.html [R=301]
235 RewriteRule ^/doc/packaging-manuals/mime-policy(.*) /doc/debian-policy/ch-opersys.html#s-mime [NE,R=301]
237 RewriteRule ^/volatile/index.* - [S=1]
238 RewriteRule ^/volatile/.+ /volatile/ [L,R=301]
239 RewriteRule ^/devel/debian-volatile/.* /volatile/ [R=301]
241 # Offer a Redirect to DSA without knowing year #474730
242 RewriteMap dsa txt:<%= wwwdo_document_root %>/security/map-dsa.txt
243 RewriteRule ^/security/dsa-(\d+)(\..*)? /security/${dsa:$1}$2 [R=301]
245 # Compatibility after SGML -> DocBook
246 # Debian Reference #624239
247 RewriteMap reference txt:<%= wwwdo_document_root %>/doc/map-reference.txt
248 RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/ch-support$1 !-f
249 RewriteRule ^/doc/manuals/debian-reference/ch-support(.*) /support$1 [L,R=301]
250 RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/${reference:$1}$2 -f
251 RewriteRule ^/doc/manuals/debian-reference/ch-([^\.]+)(.+) /doc/manuals/debian-reference/${reference:$1}$2 [L,R=301]
252 RewriteRule ^/doc/manuals/debian-reference/ch-([^\.]+)$ /doc/manuals/debian-reference/${reference:$1} [R=301]
253 RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/apa$1 -f
254 RewriteRule ^/doc/manuals/debian-reference/ap-appendix(.+) /doc/manuals/debian-reference/apa$1 [L,R=301]
255 RewriteRule ^/doc/manuals/debian-reference/ap-appendix$ /doc/manuals/debian-reference/apa [R=301]
256 RewriteCond %{DOCUMENT_ROOT}/doc/manuals/debian-reference/footnotes$1 !-f
257 RewriteRule ^/doc/manuals/debian-reference/footnotes(.+) /doc/manuals/debian-reference/index$1 [L,R=301]
258 RewriteRule ^/doc/manuals/debian-reference/footnotes$ /doc/manuals/debian-reference/ [R=301]
259 # New Maintainers' Guide
260 RewriteRule ^/doc/(manuals/)?maint-guide/ch-(.*) /doc/manuals/maint-guide/$2 [R=301]
261 RewriteRule ^/doc/(manuals/)?maint-guide/footnotes(.*) /doc/manuals/maint-guide/index$2 [R=301]
263 # Canonical place for manuals under /doc/manuals/
264 RewriteCond %{DOCUMENT_ROOT}/doc/manuals/$1 -d
265 RewriteRule ^/doc/([^/]+)/?(.*)? /doc/manuals/$1/$2 [L,R=301]
269 <VirtualHost <%= vhost_listen %> >
270 ErrorLog /var/log/apache2/www.debian.org-error.log
271 CustomLog /var/log/apache2/www.debian.org-access.log privacy
275 <VirtualHost <%= vhost_listen_443 %> >
276 ErrorLog /var/log/apache2/www.debian.org-error.log
277 CustomLog /var/log/apache2/www.debian.org-access.log privacyssl
281 Use common-debian-service-ssl www.debian.org
286 <VirtualHost <%= vhost_listen_443 %> >
287 ServerName debian.org
288 ServerAdmin webmaster@debian.org
290 CustomLog /var/log/apache2/www-other-access.log privacyssl
291 ErrorLog /var/log/apache2/www-other-error.log
293 Redirect permanent / https://www.debian.org/
296 Use common-debian-service-ssl www.debian.org