5 <% if scope.function_has_static_component(['deb.debian.org']) -%>
6 <Macro vhost-deb.debian.org-extra>
7 Redirect /debian/ http://cdn-fastly.deb.debian.org/debian/
8 Redirect /debian-debug/ http://cdn-fastly.deb.debian.org/debian-debug/
9 Redirect /debian-ports/ http://cdn-fastly.deb.debian.org/debian-ports/
10 Redirect /debian-security/ http://cdn-fastly.deb.debian.org/debian-security/
14 <Macro vhost-network-test.debian.org-extra>
15 ServerAlias network-test-backend.debian.org
20 def vhost(lines, sn, type=nil)
21 if scope.function_has_static_component([sn])
22 t = 'common-static-vhost'
23 if type then t += "-#{type}"; end
25 onion = scope.function_onion_global_service_hostname([sn])
26 onion = "unavailable-onion.invalid" if onion.nil?
28 lines << "Use #{t} #{sn} #{onion}"
33 vhost(lines, "mozilla.debian.net")
34 vhost(lines, "backports.debian.org", "ssl")
35 vhost(lines, "incoming.debian.org")
36 vhost(lines, "incoming.ports.debian.org")
37 vhost(lines, "debdeltas.debian.net")
38 vhost(lines, "news.debian.net" , "ssl")
39 vhost(lines, "debaday.debian.net" , "ssl")
40 vhost(lines, "timeline.debian.net" , "ssl")
41 vhost(lines, "network-test.debian.org" , "with-extra")
42 vhost(lines, "blends.debian.org" , "ssl")
43 vhost(lines, "wnpp-by-tags.debian.net" , "ssl")
44 vhost(lines, "security-team.debian.org", "ssl")
45 vhost(lines, "d-i.debian.org" , "ssl")
46 vhost(lines, "appstream.debian.org", "ssl")
47 vhost(lines, "dsa.debian.org" , "ssl")
48 vhost(lines, "rtc.debian.org" , "ssl")
50 vhost(lines, "10years.debconf.org" , "ssl")
51 vhost(lines, "debconf0.debconf.org", "ssl")
52 vhost(lines, "debconf1.debconf.org", "ssl")
53 vhost(lines, "debconf2.debconf.org", "ssl")
54 vhost(lines, "debconf3.debconf.org", "ssl")
55 vhost(lines, "debconf4.debconf.org", "ssl")
56 vhost(lines, "debconf5.debconf.org", "ssl")
57 vhost(lines, "debconf6.debconf.org", "ssl")
58 vhost(lines, "debconf7.debconf.org", "ssl")
59 vhost(lines, "es.debconf.org" , "ssl")
60 vhost(lines, "fr.debconf.org" , "ssl")
61 vhost(lines, "miniconf10.debconf.org" , "ssl")
63 vhost(lines, "deb.debian.org", "with-extra")
68 ######################
69 # metadata.ftp-master.debian.org
70 <% if scope.function_has_static_component(['metadata.ftp-master.debian.org']) -%>
71 <VirtualHost <%= vhost_listen %> >
72 ServerName metadata.ftp-master.debian.org
73 ServerAdmin debian-admin@lists.debian.org
75 ErrorLog /var/log/apache2/metadata.ftp-master.debian.org-error.log
76 CustomLog /var/log/apache2/metadata.ftp-master.debian.org-access.log privacy
78 Use common-static-base metadata.ftp-master.debian.org
79 AddDefaultCharset utf-8
80 <LocationMatch "/changelogs/(main|contrib|non-free)">
86 ######################
88 <% if scope.function_has_static_component(['bits.debian.org']) -%>
89 <Macro static-bits.debian.org-base>
90 ServerName bits.debian.org
91 ServerAdmin debian-admin@lists.debian.org
93 ErrorLog /var/log/apache2/bits.debian.org-error.log
94 <IfModule mod_geoip.c>
95 CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
98 Use common-static-base bits.debian.org
101 <Virtualhost <%= vhost_listen %> >
105 RewriteCond %{REQUEST_URI} !^/feeds/
106 RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R,L]
107 #RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R=301,L]
109 Use static-bits.debian.org-base
110 CustomLog /var/log/apache2/bits.debian.org-access.log privacy
113 <Virtualhost <%= vhost_listen_443 %> >
114 Use static-bits.debian.org-base
115 CustomLog /var/log/apache2/bits.debian.org-access.log privacyssl
117 Use common-debian-service-ssl bits.debian.org
122 ######################
124 <% if scope.function_has_static_component(['release.debian.org']) -%>
125 Use common-dsa-vhost-https-redirect release.debian.org
126 <VirtualHost <%= vhost_listen_443 %> >
127 ServerName release.debian.org
128 ServerAdmin debian-admin@debian.org
130 ErrorLog /var/log/apache2/release.debian.org-error.log
131 CustomLog /var/log/apache2/release.debian.org-access.log privacy
133 Use common-debian-service-ssl release.debian.org
136 Use common-static-base release.debian.org
139 RewriteRule ^/migration/$ /migration/testing.pl
140 RewriteRule ^/migration/search/(.+)/$ /migration/testing.pl?package=$1
141 RewriteCond %{QUERY_STRING} package=((.)(.*))
142 RewriteRule ^/migration/testing.pl /migration/cache/%2/%1.html [PT,L]
143 RewriteRule ^/migration/testing.pl /migration/cache/_index.html
145 Alias /proposed-updates/ /srv/static.debian.org/mirrors/release.debian.org-pu/cur/
146 <Directory /srv/static.debian.org/mirrors/release.debian.org-pu/cur>
148 Options Indexes SymLinksIfOwnerMatch MultiViews
149 IndexOptions FancyIndexing NameWidth=*
152 FilterDeclare gzip CONTENT_SET
153 FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"
164 # www.backports.org is the historical place for the backports
165 # website and archive. It is now a CNAME to backports.debian.org:
166 # redirect http requests.
167 <VirtualHost <%= vhost_listen %> >
168 ServerName www.backports.org
169 ServerAlias lists.backports.org
170 ServerAdmin debian-admin@debian.org
171 RedirectPermanent / http://backports.debian.org/
174 ######################
175 # www.ports.debian.org
176 <% if scope.function_has_static_component(['www.ports.debian.org']) -%>
178 Use common-dsa-vhost-https-redirect www.ports.debian.org
180 <Virtualhost <%= vhost_listen_443 %> >
181 ServerName www.ports.debian.org
182 ServerAlias www.ports-backend.debian.org
183 ServerAdmin debian-admin@lists.debian.org
185 ErrorLog /var/log/apache2/www.ports.debian.org-error.log
186 CustomLog /var/log/apache2/www.ports.debian.org-access.log privacy
188 Use common-debian-service-ssl www.ports.debian.org
191 <IfModule mod_userdir.c>
196 DocumentRoot /srv/static.debian.org/mirrors/www.ports.debian.org/cur
197 <Directory /srv/static.debian.org/mirrors/www.ports.debian.org/cur>
198 AllowOverride FileInfo Indexes Options=Multiviews
199 Options Multiviews Indexes FollowSymLinks Includes
200 IndexOptions FancyIndexing NameWidth=*
204 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
205 AddOutputFilter INCLUDES .xhtml
209 <VirtualHost <%= vhost_listen %> >
210 ServerName www.debian-ports.org
211 ServerAlias debian-ports.org
212 ServerAdmin debian-admin@debian.org
213 RedirectPermanent / https://www.ports.debian.org/
216 <VirtualHost <%= vhost_listen %> >
217 ServerName ports.debian.org
218 ServerAlias ports.debian.net
219 ServerAdmin debian-admin@debian.org
220 RedirectPermanent / https://www.ports.debian.org/
223 <VirtualHost <%= vhost_listen %> >
224 ServerName incoming.debian-ports.org
225 ServerAdmin debian-admin@debian.org
226 RedirectPermanent / http://incoming.ports.debian.org/
229 <VirtualHost <%= vhost_listen %> >
230 ServerName ftp.debian-ports.org
231 ServerAdmin debian-admin@debian.org
232 RedirectPermanent /archive http://www.ports.debian.org
233 RedirectPermanent /debian http://ftp.ports.debian.org/debian-ports
234 RedirectPermanent /debian-cd http://ftp.ports.debian.org/debian-ports-cd
235 RedirectPermanent / http://ftp.ports.debian.org/
240 <VirtualHost <%= vhost_listen %> >
241 ServerName video.debian.net
242 ServerAdmin debian-admin@debian.org
244 Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
249 # now only redirects remain
250 <VirtualHost <%= vhost_listen %> >
251 ServerName women.debian.org
252 ServerAdmin debian-admin@debian.org
254 RedirectPermanent / http://www.debian.org/women/
256 RedirectPermanent /about/ http://www.debian.org/women/about
257 RedirectPermanent /contact/ http://www.debian.org/women/contact
258 RedirectPermanent /faqs/ http://www.debian.org/women/faq
259 RedirectPermanent /home/ http://www.debian.org/women/
260 RedirectPermanent /images/dw.png http://www.debian.org/women/dw.png
261 RedirectPermanent /involvement/ http://www.debian.org/women/participate
262 RedirectPermanent /mentoring/ http://www.debian.org/women/mentoring
263 RedirectPermanent /press/ http://wiki.debian.org/DebianWomen/Press
264 RedirectPermanent /profiles/ http://www.debian.org/women/profiles/
267 <VirtualHost <%= vhost_listen %> >
268 ServerName volatile.debian.org
269 ServerAlias volatile-master.debian.org
270 ServerAdmin debian-admin@debian.org
271 RedirectPermanent / http://www.debian.org/volatile/
274 <VirtualHost <%= vhost_listen %> >
275 ServerName ftp-master.metadata.debian.org
276 ServerAdmin debian-admin@debian.org
277 RedirectPermanent / http://metadata.ftp-master.debian.org/