Link https://dev.gnupg.org/T4603 with workaround
[mirror/dsa-puppet.git] / modules / roles / templates / static-mirroring / vhost / static-vhosts-simple.erb
1 # puppet maintained
2
3 ######################
4 # deb.debian.org
5 <% if scope.function_has_static_component(['deb.debian.org']) -%>
6 <Macro vstatic-vhost-extra-deb.debian.org>
7         ServerAlias httpredir.debian.org
8         ServerAlias cdn.debian.net
9         ServerAlias http.debian.net
10
11         Redirect /debian            http://cdn-fastly.deb.debian.org/debian
12         Redirect /debian-debug      http://cdn-fastly.deb.debian.org/debian-debug
13         Redirect /debian-ports      http://cdn-fastly.deb.debian.org/debian-ports
14         Redirect /debian-security   http://cdn-fastly.deb.debian.org/debian-security
15 </Macro>
16
17 <VirtualHost <%= @vhost_listen_443 %> >
18         ServerName deb.debian.org
19
20         ErrorLog /var/log/apache2/deb.debian.org-error.log
21         CustomLog /var/log/apache2/deb.debian.org-access.log privacyssl
22
23         Use common-debian-service-ssl deb.debian.org
24         Use common-ssl-HSTS
25
26         ServerAdmin debian-admin@lists.debian.org
27         <IfModule mod_userdir.c>
28                 UserDir disabled
29         </IfModule>
30         ServerSignature On
31
32         DocumentRoot /srv/static.debian.org/mirrors/deb.debian.org/cur
33         <Directory /srv/static.debian.org/mirrors/deb.debian.org/cur>
34                 AllowOverride FileInfo Indexes Options=Multiviews
35                 Options Indexes SymLinksIfOwnerMatch
36                 Require all granted
37         </Directory>
38
39         Header set Surrogate-Key <%= @hostname %>
40
41         AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
42
43         Redirect /debian            https://cdn-aws.deb.debian.org/debian
44         Redirect /debian-debug      https://cdn-aws.deb.debian.org/debian-debug
45         Redirect /debian-ports      https://cdn-aws.deb.debian.org/debian-ports
46         Redirect /debian-security   https://cdn-aws.deb.debian.org/debian-security
47 </VirtualHost>
48 <% end -%>
49
50 <Macro vstatic-vhost-extra-network-test.debian.org>
51         ServerAlias network-test-backend.debian.org
52         <Location /nm>
53                 Header set Cache-Control "must-revalidate, max-age=0"
54         </Location>
55 </Macro>
56
57 <Macro vstatic-vhost-extra-bits.debian.org>
58         <IfModule mod_geoip.c>
59                 CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
60         </IfModule>
61 </Macro>
62
63 <Macro vstatic-vhost-extra-metadata.ftp-master.debian.org>
64         AddDefaultCharset utf-8
65
66         # Rewrite away double slashes
67         RewriteEngine on
68         RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ [NC]
69         RewriteRule . %1/%2 [R=301,L,NE]
70
71         <LocationMatch "/changelogs/(main|contrib|non-free)">
72                 ForceType text/plain
73         </LocationMatch>
74 </Macro>
75
76 <Macro vstatic-vhost-extra-release.debian.org>
77         RewriteEngine   on
78         RewriteRule             ^/migration/$                   /migration/testing.pl
79         RewriteRule             ^/migration/search/(.+)/$       /migration/testing.pl?package=$1
80         RewriteCond             %{QUERY_STRING} package=((.)(.*))
81         RewriteRule             ^/migration/testing.pl          /migration/cache/%2/%1.html [PT,L]
82         RewriteRule             ^/migration/testing.pl          /migration/cache/_index.html
83
84         Alias /oldstable-proposed-updates/ /srv/static.debian.org/mirrors/release.debian.org-pu/cur/
85         Alias /proposed-updates/ /srv/static.debian.org/mirrors/release.debian.org-pu/cur/
86         <Directory /srv/static.debian.org/mirrors/release.debian.org-pu/cur>
87                 Require all granted
88                 Options Indexes SymLinksIfOwnerMatch MultiViews
89
90                 AddEncoding gzip .gz
91                 FilterDeclare gzip CONTENT_SET
92                 FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"
93                 FilterChain gzip
94                 <Files *.debdiff.gz>
95                         ForceType text/plain
96                         AddDefaultCharset utf-8
97                 </Files>
98                 <Files *.debdiff.html.gz>
99                         ForceType text/html
100                         AddDefaultCharset utf-8
101                 </Files>
102                 AddType text/plain .wml
103         </Directory>
104 </Macro>
105
106 <Macro vstatic-vhost-extra-www.ports.debian.org>
107         <Directory /srv/static.debian.org/mirrors/www.ports.debian.org/cur>
108                 AllowOverride FileInfo Indexes Options=Multiviews
109                 Options Multiviews Indexes FollowSymLinks Includes
110                 Require all granted
111         </Directory>
112
113         AddOutputFilter INCLUDES .xhtml
114 </Macro>
115
116
117 <Macro vstatic-vhost-extra-lintian.debian.org>
118         AddDefaultCharset utf-8
119
120         <Directory /srv/static.debian.org/mirrors/lintian.debian.org/cur>
121                 Require all granted
122
123                 # These three lines makes apache serve
124                 # "lintian.log.gz" as a text/plain with encoding gzip
125                 # making it easier to view the log in the browser.
126                 RemoveType .gz
127                 AddEncoding x-gzip .gz
128                 AddType text/plain .log
129
130                 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css image/svg+xml
131         </Directory>
132
133         <Directory /srv/static.debian.org/mirrors/lintian.debian.org/cur/resources>
134                 # Cache these for a year (3600 * 24 * 365.25)
135                 # Files in here will change name if their content change
136                 Header set Cache-Control "max-age=31557600, public"
137         </Directory>
138
139         RewriteEngine on
140         RewriteMap source-map txt:/srv/static.debian.org/mirrors/lintian.debian.org/cur/lookup-tables/source-packages
141
142         # Re-direct from the "old" locations to the new ones
143         RewriteRule ^/reports/T(.*)\.html$ /tags/$1.html [L,R=permanent]
144         RewriteRule ^/reports/(.*)$ /$1 [L,R=permanent]
145
146         # Map source packages to reports (this mapping is re-written once per lintian run,
147         # serve it as a 302 rather than a permanent redirect)
148         # Version-less request
149         RewriteRule ^/source/([a-z0-9-]+)/?$ /${source-map:$1} [L,R,NE]
150         # Versioned request
151         RewriteRule ^/source/([a-z0-9-]+)/([a-zA-Z0-9.+:~-]+)$ /${source-map:$1/$2} [L,R,NE]
152
153         Header always set Content-Security-Policy "default-src 'self'; media-src 'none'; object-src 'none';"
154         <FilesMatch "\.(svg)$">
155                 Header always set Content-Security-Policy "default-src 'none'; frame-ancestors 'none'; style-src 'self' 'unsafe-inline';"
156         </FilesMatch>
157 </Macro>
158
159 <Macro vstatic-vhost-extra-wiki.debconf.org>
160         <Location /wiki/>
161                 ForceType text/html
162         </Location>
163         <Location /action/>
164                 ForceType text/html
165         </Location>
166
167         RewriteEngine on
168         RewriteRule ^/$ /wiki/Main_Page [L,R=permanent]
169         RewriteRule ^/wiki/$ /wiki/Main_Page [L,R=permanent]
170
171         RewriteCond %{QUERY_STRING} (^|&)modules=mediawiki.legacy.commonPrint,shared|skins.monobook(&|$)
172         RewriteCond %{QUERY_STRING} (^|&)only=styles(&|$)
173         RewriteRule ^/load.php$ /load-monobook-styles.css [L,QSD]
174
175         RewriteCond %{QUERY_STRING} (^|&)modules=site(&|$)
176         RewriteCond %{QUERY_STRING} (^|&)only=styles(&|$)
177         RewriteRule ^/load.php$ /load-site-styles.css [L,QSD]
178
179         RewriteCond %{QUERY_STRING} (^|&)modules=startup(&|$)
180         RewriteCond %{QUERY_STRING} (^|&)only=scripts(&|$)
181         RewriteRule ^/load.php$ /load-startup-scripts.js [L,QSD]
182
183         RewriteCond %{QUERY_STRING} (^|&)modules=site(&|$)
184         RewriteCond %{QUERY_STRING} (^|&)only=scripts(&|$)
185         RewriteRule ^/load.php$ /load-site-scripts.js [L,QSD]
186
187         RewriteCond %{QUERY_STRING} (^|&)modules=jquery%2Cmediawiki(&|$)
188         RewriteCond %{QUERY_STRING} (^|&)only=scripts(&|$)
189         RewriteRule ^/load.php$ /load-jquery-scripts.js [L,QSD]
190
191         RewriteCond %{QUERY_STRING} (^|&)modules=jquery.client%2Ccookie%2CmessageBox%2CmwExtension|mediawiki.legacy.ajax%2Cwikibits|mediawiki.page.startup|mediawiki.util(&|$)
192         RewriteRule ^/load.php$ /load-jquery.client.js [L,QSD]
193
194         RewriteCond %{QUERY_STRING} (^|&)modules=jquery.checkboxShiftClick%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%7Cmediawiki.page.ready%7Cmediawiki.user(&|$)
195         RewriteRule ^/load.php$ /load-jquery.checkbox.js [L,QSD]
196 </Macro>
197
198 <Macro vstatic-vhost-extra-www.debconf.org>
199         ServerAlias www-test.debconf.org
200
201         <Directory /srv/static.debian.org/mirrors/www.debconf.org/cur>
202                 Options +IncludesNOEXEC
203                 SSILegacyExprParser on
204                 DirectoryIndex index.shtml
205         </Directory>
206
207         AddOutputFilter INCLUDES .shtml
208
209         RewriteEngine On
210         # A few redirects for older debconf sites, so old links work
211         RewriteRule ^/gallery/(.*)$ https://gallery.debconf.org/v/$1 [R=permanent,L]
212         RewriteRule ^/.*years$ https://10years.debconf.org/ [R=permanent,L]
213         RewriteRule ^/debconf2$ https://debconf2.debconf.org/ [R=permanent,L]
214         RewriteRule ^/debconf3$ https://debconf3.debconf.org/ [R=permanent,L]
215         RewriteRule ^/debconf4$ https://debconf4.debconf.org/ [R=permanent,L]
216         RewriteRule ^/debconf5$ https://debconf5.debconf.org/ [R=permanent,L]
217         RewriteRule ^/10years/(.*)$ https://10years.debconf.org/$1 [R=permanent,L]
218         RewriteRule ^/debconf2/(.*)$ https://debconf2.debconf.org/$1 [R=permanent,L]
219         RewriteRule ^/debconf3/(.*)$ https://debconf3.debconf.org/$1 [R=permanent,L]
220         RewriteRule ^/debconf4/(.*)$ https://debconf4.debconf.org/$1 [R=permanent,L]
221         RewriteRule ^/debconf5/(.*)$ https://debconf5.debconf.org/$1 [R=permanent,L]
222 </Macro>
223
224 <Macro vstatic-vhost-extra-openpgpkey.debian.org>
225         # Legacy GPG versions (including 2.2.12 in buster/Debian 10) get redirections from
226         # the (not supposed to be default) direct method wrong.
227         #  They ask for https://debian.org/.well-known/openpgpkey/hu/<hash>
228         #  get a redirect to https://openpgpkey.debian.org/.well-known/openpgpkey/debian.org/hu/<hash>
229         #  and then try to fetch https://openpgpkey.debian.org/.well-known/openpgpkey/hu/<hash>
230         # *sigh*
231         # cf. https://dev.gnupg.org/T4603
232         Alias /.well-known/openpgpkey/hu/ /srv/static.debian.org/mirrors/openpgpkey.debian.org/cur/debian.org/hu/
233         Alias /.well-known/openpgpkey/policy /srv/static.debian.org/mirrors/openpgpkey.debian.org/cur/debian.org/policy
234
235         # The draft specified well-known place using the "advanced method"
236         Alias /.well-known/openpgpkey/ /srv/static.debian.org/mirrors/openpgpkey.debian.org/cur/
237         <Location />
238                 Options -Indexes
239         </Location>
240 </Macro>
241
242 <%=
243
244 def vhost(lines, sn, kwargs={})
245         if scope.function_has_static_component([sn])
246                 if not kwargs[:extra]
247                                 lines << "<Macro vstatic-vhost-extra-#{sn}>"
248                                 lines << "  # mod macro does not like empty macros, so here's some content:"
249                                 lines << "  <Directory /non-existant>"
250                                 lines << "  </Directory>"
251                                 lines << "</Macro>"
252                 end
253
254                 lines << "Use prepare-static-vhost #{sn}"
255
256                 if kwargs[:ssl] and kwargs[:ssl_optional]
257                         lines << "Use static-vhost-plain-#{sn}"
258                         lines << "Use static-vhost-ssl-#{sn}"
259                 elsif kwargs[:ssl]
260                         lines << "Use common-dsa-vhost-https-redirect #{sn}"
261                         lines << "Use static-vhost-ssl-#{sn}"
262                 else
263                         lines << "Use static-vhost-plain-#{sn}"
264                 end
265
266                 onion = scope.function_onion_global_service_hostname([sn])
267                 lines << "Use static-vhost-onion-#{sn} #{onion}" if onion
268
269                 lines << ""
270         end
271 end
272
273 lines = []
274 vhost(lines, "mozilla.debian.net"            , :ssl => true, :ssl_optional => true)
275 vhost(lines, "backports.debian.org"          , :ssl => true)
276 vhost(lines, "incoming.debian.org"           , :ssl => true, :ssl_optional => true)
277 vhost(lines, "incoming.ports.debian.org"     , :ssl => true, :ssl_optional => true)
278 vhost(lines, "debdeltas.debian.net"          , :ssl => true, :ssl_optional => true)
279 vhost(lines, "news.debian.net"               , :ssl => true)
280 vhost(lines, "bootstrap.debian.net"          , :ssl => true)
281 vhost(lines, "debaday.debian.net"            , :ssl => true)
282 vhost(lines, "timeline.debian.net"           , :ssl => true)
283 vhost(lines, "network-test.debian.org"       , :extra => true)
284 vhost(lines, "blends.debian.org"             , :ssl => true)
285 vhost(lines, "wnpp-by-tags.debian.net"       , :ssl => true)
286 vhost(lines, "security-team.debian.org"      , :ssl => true)
287 vhost(lines, "d-i.debian.org"                , :ssl => true)
288 vhost(lines, "appstream.debian.org"          , :ssl => true)
289 vhost(lines, "dpl.debian.org"                , :ssl => true)
290 vhost(lines, "dsa.debian.org"                , :ssl => true)
291 vhost(lines, "rtc.debian.org"                , :ssl => true)
292 vhost(lines, "mirror-master.debian.org"      , :ssl => true)
293 vhost(lines, "onion.debian.org"              , :ssl => true)
294 vhost(lines, "openpgpkey.debian.org"         , :ssl => true, :extra => true)
295 vhost(lines, "manpages.debian.org"           , :ssl => true, :extra => true)
296 vhost(lines, "cdbuilder-logs.debian.org"     , :ssl => true)
297
298 vhost(lines, "bits.debian.org"               , :ssl => true, :extra => true)
299 vhost(lines, "micronews.debian.org"          , :ssl => true)
300 vhost(lines, "metadata.ftp-master.debian.org", :extra => true)
301
302 vhost(lines, "10years.debconf.org"           , :ssl => true)
303 vhost(lines, "debconf0.debconf.org"          , :ssl => true)
304 vhost(lines, "debconf1.debconf.org"          , :ssl => true)
305 vhost(lines, "debconf2.debconf.org"          , :ssl => true)
306 vhost(lines, "debconf3.debconf.org"          , :ssl => true)
307 vhost(lines, "debconf4.debconf.org"          , :ssl => true)
308 vhost(lines, "debconf5.debconf.org"          , :ssl => true)
309 vhost(lines, "debconf6.debconf.org"          , :ssl => true)
310 vhost(lines, "debconf7.debconf.org"          , :ssl => true)
311 vhost(lines, "debconf16.debconf.org"         , :ssl => true)
312 vhost(lines, "debconf17.debconf.org"         , :ssl => true)
313 vhost(lines, "debconf18.debconf.org"         , :ssl => true)
314 vhost(lines, "debconf19.debconf.org"         , :ssl => true)
315 vhost(lines, "es.debconf.org"                , :ssl => true)
316 vhost(lines, "fr.debconf.org"                , :ssl => true)
317 vhost(lines, "miniconf10.debconf.org"        , :ssl => true)
318 vhost(lines, "wiki.debconf.org"              , :ssl => true, :extra => true)
319 vhost(lines, "www.debconf.org"               , :ssl => true, :extra => true)
320
321 vhost(lines, "deb.debian.org"                , :extra => true)
322 vhost(lines, "release.debian.org"            , :ssl => true, :extra => true)
323 vhost(lines, "www.ports.debian.org"          , :ssl => true, :extra => true)
324 vhost(lines, "lintian.debian.org"            , :ssl => true, :extra => true)
325
326 lines.join("\n")
327 -%>
328
329 # www.backports.org
330 ###################
331 # www.backports.org is the historical place for the backports
332 # website and archive.  It is now a CNAME to backports.debian.org:
333 # redirect http requests.
334 <VirtualHost <%= @vhost_listen %> >
335         ServerName www.backports.org
336         ServerAlias lists.backports.org
337         ServerAdmin debian-admin@debian.org
338         RedirectPermanent / https://backports.debian.org/
339 </VirtualHost>
340
341 ######################
342 <VirtualHost <%= @vhost_listen %> >
343         ServerName www.debian-ports.org
344         ServerAlias debian-ports.org
345         ServerAdmin debian-admin@debian.org
346         RedirectPermanent / https://www.ports.debian.org/
347 </VirtualHost>
348
349 <VirtualHost <%= @vhost_listen %> >
350         ServerName ports.debian.org
351         ServerAlias ports.debian.net
352         ServerAdmin debian-admin@debian.org
353         RedirectPermanent / https://www.ports.debian.org/
354 </VirtualHost>
355
356 <VirtualHost <%= @vhost_listen %> >
357         ServerName incoming.debian-ports.org
358         ServerAdmin debian-admin@debian.org
359         RedirectPermanent / http://incoming.ports.debian.org/
360 </VirtualHost>
361
362 <VirtualHost <%= @vhost_listen %> >
363         ServerName ftp.debian-ports.org
364         ServerAdmin debian-admin@debian.org
365         RedirectPermanent /archive https://www.ports.debian.org
366         RedirectPermanent /debian http://ftp.ports.debian.org/debian-ports
367         RedirectPermanent /debian-cd https://cdimage.debian.org/cdimage/ports/
368         RedirectPermanent / http://ftp.ports.debian.org/
369 </VirtualHost>
370
371 <Macro vstatic-vhost-video.debian.net>
372         ServerName video.debian.net
373         ServerAdmin debian-admin@debian.org
374         Redirect / https://meetings-archive.debian.net/pub/debian-meetings/
375 </Macro>
376
377 <VirtualHost <%= @vhost_listen %> >
378         Use vstatic-vhost-video.debian.net
379 </VirtualHost>
380
381 <VirtualHost <%= @vhost_listen_443 %> >
382         Use vstatic-vhost-video.debian.net
383         Use common-debian-service-ssl video.debian.net
384         Use common-ssl-HSTS
385 </VirtualHost>
386
387 Use common-dsa-vhost-https-redirect lists.alioth.debian.org
388 <VirtualHost <%= @vhost_listen_443 %> >
389         ServerName lists.alioth.debian.org
390         ServerAdmin debian-admin@debian.org
391         Use common-debian-service-ssl lists.alioth.debian.org
392         Use common-ssl-HSTS
393         Redirect / https://alioth-lists.debian.net/
394 </VirtualHost>
395
396 Use common-dsa-vhost-https-redirect pkg-ruby-extras.alioth.debian.org
397 <VirtualHost <%= @vhost_listen_443 %> >
398         ServerName pkg-ruby-extras.alioth.debian.org
399         ServerAdmin debian-admin@debian.org
400         Use common-debian-service-ssl pkg-ruby-extras.alioth.debian.org
401         Use common-ssl-HSTS
402         Redirect / https://gemwatch.debian.net/
403 </VirtualHost>
404
405 Use common-dsa-vhost-https-redirect video.debconf.org
406 <VirtualHost <%= @vhost_listen_443 %> >
407         ServerName video.debconf.org
408         ServerAdmin debian-admin@debian.org
409         Use common-debian-service-ssl video.debconf.org
410         Use common-ssl-HSTS
411         Redirect / https://debconf-video-team.pages.debian.net/docs/
412 </VirtualHost>
413
414 <% if scope.function_has_static_component(['metadata.ftp-master.debian.org']) -%>
415 <VirtualHost <%= @vhost_listen_443 %> >
416         ServerName metadata.ftp-master.debian.org
417         ServerAlias metadata-backend.ftp-master.debian.org
418         # all self-referential URLs should use the public host name
419         UseCanonicalName On
420         Use common-debian-service-ssl metadata-backend.ftp-master.debian.org
421         ErrorLog /var/log/apache2/metadata-backend.ftp-master.debian.org-error.log
422         CustomLog /var/log/apache2/metadata-backend.ftp-master.debian.org-access.log privacy
423
424         Use static-vhost-base-metadata.ftp-master.debian.org
425 </VirtualHost>
426 <% end -%>
427
428 Use common-dsa-vhost-https-redirect debconf.org
429 <VirtualHost <%= @vhost_listen_443 %> >
430         ServerName debconf.org
431         ServerAdmin debian-admin@debian.org
432         Use common-debian-service-ssl debconf.org
433         Use common-ssl-HSTS
434         Redirect / https://www.debconf.org/
435 </VirtualHost>
436
437 # historical sites
438 ##################
439 # now only redirects remain
440 <VirtualHost <%= @vhost_listen %> >
441         ServerName women.debian.org
442         ServerAdmin debian-admin@debian.org
443
444         RedirectPermanent / https://www.debian.org/women/
445
446         RedirectPermanent /about/ https://www.debian.org/women/about
447         RedirectPermanent /contact/ https://www.debian.org/women/contact
448         RedirectPermanent /faqs/ https://www.debian.org/women/faq
449         RedirectPermanent /home/ https://www.debian.org/women/
450         RedirectPermanent /images/dw.png https://www.debian.org/women/dw.png
451         RedirectPermanent /involvement/ https://www.debian.org/women/participate
452         RedirectPermanent /mentoring/ https://www.debian.org/women/mentoring
453         RedirectPermanent /press/ https://wiki.debian.org/DebianWomen/Press
454         RedirectPermanent /profiles/ https://www.debian.org/women/profiles/
455 </VirtualHost>
456
457 <VirtualHost <%= @vhost_listen %> >
458         ServerName volatile.debian.org
459         ServerAlias volatile-master.debian.org
460         ServerAdmin debian-admin@debian.org
461         RedirectPermanent / https://www.debian.org/volatile/
462 </VirtualHost>
463
464 <VirtualHost <%= @vhost_listen %> >
465         ServerName ftp-master.metadata.debian.org
466         ServerAdmin debian-admin@debian.org
467         RedirectPermanent / http://metadata.ftp-master.debian.org/
468 </VirtualHost>
469
470 <VirtualHost <%= @vhost_listen %> >
471         ServerName backports-master.debian.org
472         ServerAdmin debian-admin@debian.org
473         RedirectPermanent / https://backports.debian.org/
474 </VirtualHost>
475
476 <VirtualHost <%= @vhost_listen %> >
477         ServerName manpages.debian.net
478         ServerAdmin debian-admin@debian.org
479         Redirect / https://manpages.debian.org/
480 </VirtualHost>
481
482 Use common-dsa-vhost-https-redirect sources.debian.net
483 <VirtualHost <%= @vhost_listen_443 %> >
484         ServerName sources.debian.net
485         ServerAdmin debian-admin@debian.org
486         Use common-debian-service-ssl sources.debian.net
487         Use common-ssl-HSTS
488         Redirect permanent / https://sources.debian.org/
489 </VirtualHost>
490
491 # error pages
492 #############
493
494 Use common-dsa-vhost-https-redirect archive.debian.net
495 <VirtualHost <%= @vhost_listen_443 %> >
496         ServerName archive.debian.net
497         ServerAdmin debian-admin@debian.org
498         ErrorLog /var/log/apache2/archive.debian.net-error.log
499         CustomLog /var/log/apache2/archive.debian.net-access.log privacyssl
500         Use common-debian-service-ssl archive.debian.net
501         Use common-ssl-HSTS
502         Use common-disabled-service
503 </VirtualHost>
504
505 <VirtualHost <%= @vhost_listen %> >
506         ServerName cdimage.debian.org
507         ServerAlias cloud.debian.org
508         ServerAlias get.debian.org
509         ServerAlias bttracker.debian.org
510         ServerAlias meetings-archive.debian.net
511         ServerAdmin debian-admin@debian.org
512         ErrorLog /var/log/apache2/cdimage.debian.org-error.log
513         CustomLog /var/log/apache2/cdimage.debian.org-access.log privacyssl
514
515         <IfModule mod_userdir.c>
516                 UserDir disabled
517         </IfModule>
518         DocumentRoot /srv/static.debian.org/puppet/cdimage.debian.org
519         <Directory /srv/static.debian.org/puppet/cdimage.debian.org>
520                 Require all granted
521         </Directory>
522         RewriteEngine On
523         RewriteRule !^/503.html / [R=503]
524         ErrorDocument 503 /503.html
525 </VirtualHost>
526
527 <VirtualHost <%= @vhost_listen_443 %> >
528         ServerName cdimage.debian.org
529         ServerAlias cloud.debian.org
530         ServerAlias get.debian.org
531         ServerAlias bttracker.debian.org
532         ServerAlias meetings-archive.debian.net
533         ServerAdmin debian-admin@debian.org
534         ErrorLog /var/log/apache2/cdimage.debian.org-error.log
535         CustomLog /var/log/apache2/cdimage.debian.org-access.log privacyssl
536         Use common-debian-service-ssl cdimage.debian.org
537
538         <IfModule mod_userdir.c>
539                 UserDir disabled
540         </IfModule>
541         DocumentRoot /srv/static.debian.org/puppet/cdimage.debian.org
542         <Directory /srv/static.debian.org/puppet/cdimage.debian.org>
543                 Require all granted
544         </Directory>
545         RewriteEngine On
546         RewriteRule !^/503.html / [R=503]
547         ErrorDocument 503 /503.html
548 </VirtualHost>
549
550
551 # vim:ft=apache: