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
18 <Macro vhost-bits.debian.org-extra>
19 <IfModule mod_geoip.c>
20 CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
24 <Macro vhost-metadata.ftp-master.debian.org-extra>
25 AddDefaultCharset utf-8
26 <LocationMatch "/changelogs/(main|contrib|non-free)">
33 def vhost(lines, sn, type=nil)
34 if scope.function_has_static_component([sn])
35 t = 'common-static-vhost'
36 if type then t += "-#{type}"; end
38 onion = scope.function_onion_global_service_hostname([sn])
39 onion = "unavailable-onion.invalid" if onion.nil?
41 lines << "Use #{t} #{sn} #{onion}"
46 vhost(lines, "mozilla.debian.net")
47 vhost(lines, "backports.debian.org", "ssl")
48 vhost(lines, "incoming.debian.org")
49 vhost(lines, "incoming.ports.debian.org")
50 vhost(lines, "debdeltas.debian.net")
51 vhost(lines, "news.debian.net" , "ssl")
52 vhost(lines, "debaday.debian.net" , "ssl")
53 vhost(lines, "timeline.debian.net" , "ssl")
54 vhost(lines, "network-test.debian.org" , "with-extra")
55 vhost(lines, "blends.debian.org" , "ssl")
56 vhost(lines, "wnpp-by-tags.debian.net" , "ssl")
57 vhost(lines, "security-team.debian.org", "ssl")
58 vhost(lines, "d-i.debian.org" , "ssl")
59 vhost(lines, "appstream.debian.org", "ssl")
60 vhost(lines, "dsa.debian.org" , "ssl")
61 vhost(lines, "rtc.debian.org" , "ssl")
62 vhost(lines, "onion.debian.org" , "ssl")
64 vhost(lines, "bits.debian.org", "ssl-with-extra")
65 vhost(lines, "metadata.ftp-master.debian.org", "with-extra")
67 vhost(lines, "10years.debconf.org" , "ssl")
68 vhost(lines, "debconf0.debconf.org", "ssl")
69 vhost(lines, "debconf1.debconf.org", "ssl")
70 vhost(lines, "debconf2.debconf.org", "ssl")
71 vhost(lines, "debconf3.debconf.org", "ssl")
72 vhost(lines, "debconf4.debconf.org", "ssl")
73 vhost(lines, "debconf5.debconf.org", "ssl")
74 vhost(lines, "debconf6.debconf.org", "ssl")
75 vhost(lines, "debconf7.debconf.org", "ssl")
76 vhost(lines, "es.debconf.org" , "ssl")
77 vhost(lines, "fr.debconf.org" , "ssl")
78 vhost(lines, "miniconf10.debconf.org" , "ssl")
80 vhost(lines, "deb.debian.org", "with-extra")
85 ######################
87 <% if scope.function_has_static_component(['release.debian.org']) -%>
88 Use common-dsa-vhost-https-redirect release.debian.org
90 <Macro vhost-inner-release.debian.org>
92 ServerAdmin debian-admin@debian.org
94 ErrorLog /var/log/apache2/release.debian.org-error.log
95 CustomLog /var/log/apache2/release.debian.org-access.log privacy
97 Use common-static-base release.debian.org
100 RewriteRule ^/migration/$ /migration/testing.pl
101 RewriteRule ^/migration/search/(.+)/$ /migration/testing.pl?package=$1
102 RewriteCond %{QUERY_STRING} package=((.)(.*))
103 RewriteRule ^/migration/testing.pl /migration/cache/%2/%1.html [PT,L]
104 RewriteRule ^/migration/testing.pl /migration/cache/_index.html
106 Alias /proposed-updates/ /srv/static.debian.org/mirrors/release.debian.org-pu/cur/
107 <Directory /srv/static.debian.org/mirrors/release.debian.org-pu/cur>
109 Options Indexes SymLinksIfOwnerMatch MultiViews
110 IndexOptions FancyIndexing NameWidth=*
113 FilterDeclare gzip CONTENT_SET
114 FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"
122 <VirtualHost <%= vhost_listen_443 %> >
123 ServerName release.debian.org
124 Use common-debian-service-ssl release.debian.org
126 Use vhost-inner-release.debian.org
128 <% if scope.function_onion_global_service_hostname(['release.debian.org']) -%>
129 <Virtualhost <%= vhost_listen %> >
130 ServerName <%= scope.function_onion_global_service_hostname(['release.debian.org']) %>
131 Use vhost-inner-release.debian.org
139 # www.backports.org is the historical place for the backports
140 # website and archive. It is now a CNAME to backports.debian.org:
141 # redirect http requests.
142 <VirtualHost <%= vhost_listen %> >
143 ServerName www.backports.org
144 ServerAlias lists.backports.org
145 ServerAdmin debian-admin@debian.org
146 RedirectPermanent / http://backports.debian.org/
149 ######################
150 # www.ports.debian.org
151 <% if scope.function_has_static_component(['www.ports.debian.org']) -%>
153 Use common-dsa-vhost-https-redirect www.ports.debian.org
155 <Macro vhost-inner-www.ports.debian.org>
156 ServerAdmin debian-admin@lists.debian.org
158 ErrorLog /var/log/apache2/www.ports.debian.org-error.log
159 CustomLog /var/log/apache2/www.ports.debian.org-access.log privacy
162 <IfModule mod_userdir.c>
167 DocumentRoot /srv/static.debian.org/mirrors/www.ports.debian.org/cur
168 <Directory /srv/static.debian.org/mirrors/www.ports.debian.org/cur>
169 AllowOverride FileInfo Indexes Options=Multiviews
170 Options Multiviews Indexes FollowSymLinks Includes
171 IndexOptions FancyIndexing NameWidth=*
175 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
176 AddOutputFilter INCLUDES .xhtml
179 <Virtualhost <%= vhost_listen_443 %> >
180 ServerName www.ports.debian.org
181 ServerAlias www.ports-backend.debian.org
182 Use common-debian-service-ssl www.ports.debian.org
184 Use vhost-inner-www.ports.debian.org
186 <% if scope.function_onion_global_service_hostname(['www.ports.debian.org']) -%>
187 <Virtualhost <%= vhost_listen %> >
188 ServerName <%= scope.function_onion_global_service_hostname(['www.ports.debian.org']) %>
189 Use vhost-inner-www.ports.debian.org
194 <VirtualHost <%= vhost_listen %> >
195 ServerName www.debian-ports.org
196 ServerAlias debian-ports.org
197 ServerAdmin debian-admin@debian.org
198 RedirectPermanent / https://www.ports.debian.org/
201 <VirtualHost <%= vhost_listen %> >
202 ServerName ports.debian.org
203 ServerAlias ports.debian.net
204 ServerAdmin debian-admin@debian.org
205 RedirectPermanent / https://www.ports.debian.org/
208 <VirtualHost <%= vhost_listen %> >
209 ServerName incoming.debian-ports.org
210 ServerAdmin debian-admin@debian.org
211 RedirectPermanent / http://incoming.ports.debian.org/
214 <VirtualHost <%= vhost_listen %> >
215 ServerName ftp.debian-ports.org
216 ServerAdmin debian-admin@debian.org
217 RedirectPermanent /archive http://www.ports.debian.org
218 RedirectPermanent /debian http://ftp.ports.debian.org/debian-ports
219 RedirectPermanent /debian-cd http://ftp.ports.debian.org/debian-ports-cd
220 RedirectPermanent / http://ftp.ports.debian.org/
225 <VirtualHost <%= vhost_listen %> >
226 ServerName video.debian.net
227 ServerAdmin debian-admin@debian.org
229 Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
234 # now only redirects remain
235 <VirtualHost <%= vhost_listen %> >
236 ServerName women.debian.org
237 ServerAdmin debian-admin@debian.org
239 RedirectPermanent / http://www.debian.org/women/
241 RedirectPermanent /about/ http://www.debian.org/women/about
242 RedirectPermanent /contact/ http://www.debian.org/women/contact
243 RedirectPermanent /faqs/ http://www.debian.org/women/faq
244 RedirectPermanent /home/ http://www.debian.org/women/
245 RedirectPermanent /images/dw.png http://www.debian.org/women/dw.png
246 RedirectPermanent /involvement/ http://www.debian.org/women/participate
247 RedirectPermanent /mentoring/ http://www.debian.org/women/mentoring
248 RedirectPermanent /press/ http://wiki.debian.org/DebianWomen/Press
249 RedirectPermanent /profiles/ http://www.debian.org/women/profiles/
252 <VirtualHost <%= vhost_listen %> >
253 ServerName volatile.debian.org
254 ServerAlias volatile-master.debian.org
255 ServerAdmin debian-admin@debian.org
256 RedirectPermanent / http://www.debian.org/volatile/
259 <VirtualHost <%= vhost_listen %> >
260 ServerName ftp-master.metadata.debian.org
261 ServerAdmin debian-admin@debian.org
262 RedirectPermanent / http://metadata.ftp-master.debian.org/