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/
17 def vhost(lines, sn, type=nil, extra=nil)
18 if scope.function_has_static_component([sn])
19 t = 'common-static-vhost'
20 if type then t += "-#{type}"; end
23 if extra then e += " #{extra}"; end
25 lines << "Use #{t} #{sn}#{e}"
30 vhost(lines, "mozilla.debian.net")
31 vhost(lines, "backports.debian.org", "ssl")
32 vhost(lines, "incoming.debian.org")
33 vhost(lines, "incoming.ports.debian.org")
34 vhost(lines, "debdeltas.debian.net")
35 vhost(lines, "news.debian.net" , "ssl")
36 vhost(lines, "debaday.debian.net" , "ssl")
37 vhost(lines, "timeline.debian.net" , "ssl")
38 vhost(lines, "network-test.debian.org" , "with-extra", '"ServerAlias network-test-backend.debian.org"')
39 vhost(lines, "blends.debian.org" , "ssl")
40 vhost(lines, "wnpp-by-tags.debian.net" , "ssl")
41 vhost(lines, "security-team.debian.org", "ssl")
42 vhost(lines, "d-i.debian.org" , "ssl")
43 vhost(lines, "appstream.debian.org", "ssl")
44 vhost(lines, "dsa.debian.org" , "ssl")
45 vhost(lines, "rtc.debian.org" , "ssl")
47 vhost(lines, "10years.debconf.org" , "ssl")
48 vhost(lines, "debconf0.debconf.org", "ssl")
49 vhost(lines, "debconf1.debconf.org", "ssl")
50 vhost(lines, "debconf2.debconf.org", "ssl")
51 vhost(lines, "debconf3.debconf.org", "ssl")
52 vhost(lines, "debconf4.debconf.org", "ssl")
53 vhost(lines, "debconf5.debconf.org", "ssl")
54 vhost(lines, "debconf6.debconf.org", "ssl")
55 vhost(lines, "debconf7.debconf.org", "ssl")
56 vhost(lines, "es.debconf.org" , "ssl")
57 vhost(lines, "fr.debconf.org" , "ssl")
58 vhost(lines, "miniconf10.debconf.org" , "ssl")
60 vhost(lines, "deb.debian.org", "with-extra", '"Use vhost-deb.debian.org-extra"')
65 ######################
66 # metadata.ftp-master.debian.org
67 <% if scope.function_has_static_component(['metadata.ftp-master.debian.org']) -%>
68 <VirtualHost <%= vhost_listen %> >
69 ServerName metadata.ftp-master.debian.org
70 ServerAdmin debian-admin@lists.debian.org
72 ErrorLog /var/log/apache2/metadata.ftp-master.debian.org-error.log
73 CustomLog /var/log/apache2/metadata.ftp-master.debian.org-access.log privacy
75 Use common-static-base metadata.ftp-master.debian.org
76 AddDefaultCharset utf-8
77 <LocationMatch "/changelogs/(main|contrib|non-free)">
83 ######################
85 <% if scope.function_has_static_component(['bits.debian.org']) -%>
86 <Macro static-bits.debian.org-base>
87 ServerName bits.debian.org
88 ServerAdmin debian-admin@lists.debian.org
90 ErrorLog /var/log/apache2/bits.debian.org-error.log
91 <IfModule mod_geoip.c>
92 CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
95 Use common-static-base bits.debian.org
98 <Virtualhost <%= vhost_listen %> >
102 RewriteCond %{REQUEST_URI} !^/feeds/
103 RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R,L]
104 #RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R=301,L]
106 Use static-bits.debian.org-base
107 CustomLog /var/log/apache2/bits.debian.org-access.log privacy
110 <Virtualhost <%= vhost_listen_443 %> >
111 Use static-bits.debian.org-base
112 CustomLog /var/log/apache2/bits.debian.org-access.log privacyssl
114 Use common-debian-service-ssl bits.debian.org
119 ######################
121 <% if scope.function_has_static_component(['release.debian.org']) -%>
122 Use common-dsa-vhost-https-redirect release.debian.org
123 <VirtualHost <%= vhost_listen_443 %> >
124 ServerName release.debian.org
125 ServerAdmin debian-admin@debian.org
127 ErrorLog /var/log/apache2/release.debian.org-error.log
128 CustomLog /var/log/apache2/release.debian.org-access.log privacy
130 Use common-debian-service-ssl release.debian.org
133 Use common-static-base 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 <Virtualhost <%= vhost_listen_443 %> >
156 ServerName www.ports.debian.org
157 ServerAlias www.ports-backend.debian.org
158 ServerAdmin debian-admin@lists.debian.org
160 ErrorLog /var/log/apache2/www.ports.debian.org-error.log
161 CustomLog /var/log/apache2/www.ports.debian.org-access.log privacy
163 Use common-debian-service-ssl www.ports.debian.org
166 <IfModule mod_userdir.c>
171 DocumentRoot /srv/static.debian.org/mirrors/www.ports.debian.org/cur
172 <Directory /srv/static.debian.org/mirrors/www.ports.debian.org/cur>
173 AllowOverride FileInfo Indexes Options=Multiviews
174 Options Multiviews Indexes FollowSymLinks Includes
175 IndexOptions FancyIndexing NameWidth=*
179 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
180 AddOutputFilter INCLUDES .xhtml
184 <VirtualHost <%= vhost_listen %> >
185 ServerName www.debian-ports.org
186 ServerAlias debian-ports.org
187 ServerAdmin debian-admin@debian.org
188 RedirectPermanent / https://www.ports.debian.org/
191 <VirtualHost <%= vhost_listen %> >
192 ServerName ports.debian.org
193 ServerAlias ports.debian.net
194 ServerAdmin debian-admin@debian.org
195 RedirectPermanent / https://www.ports.debian.org/
198 <VirtualHost <%= vhost_listen %> >
199 ServerName incoming.debian-ports.org
200 ServerAdmin debian-admin@debian.org
201 RedirectPermanent / http://incoming.ports.debian.org/
204 <VirtualHost <%= vhost_listen %> >
205 ServerName ftp.debian-ports.org
206 ServerAdmin debian-admin@debian.org
207 RedirectPermanent /archive http://www.ports.debian.org
208 RedirectPermanent /debian http://ftp.ports.debian.org/debian-ports
209 RedirectPermanent /debian-cd http://ftp.ports.debian.org/debian-ports-cd
210 RedirectPermanent / http://ftp.ports.debian.org/
215 <VirtualHost <%= vhost_listen %> >
216 ServerName video.debian.net
217 ServerAdmin debian-admin@debian.org
219 Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
224 # now only redirects remain
225 <VirtualHost <%= vhost_listen %> >
226 ServerName women.debian.org
227 ServerAdmin debian-admin@debian.org
229 RedirectPermanent / http://www.debian.org/women/
231 RedirectPermanent /about/ http://www.debian.org/women/about
232 RedirectPermanent /contact/ http://www.debian.org/women/contact
233 RedirectPermanent /faqs/ http://www.debian.org/women/faq
234 RedirectPermanent /home/ http://www.debian.org/women/
235 RedirectPermanent /images/dw.png http://www.debian.org/women/dw.png
236 RedirectPermanent /involvement/ http://www.debian.org/women/participate
237 RedirectPermanent /mentoring/ http://www.debian.org/women/mentoring
238 RedirectPermanent /press/ http://wiki.debian.org/DebianWomen/Press
239 RedirectPermanent /profiles/ http://www.debian.org/women/profiles/
242 <VirtualHost <%= vhost_listen %> >
243 ServerName volatile.debian.org
244 ServerAlias volatile-master.debian.org
245 ServerAdmin debian-admin@debian.org
246 RedirectPermanent / http://www.debian.org/volatile/
249 <VirtualHost <%= vhost_listen %> >
250 ServerName ftp-master.metadata.debian.org
251 ServerAdmin debian-admin@debian.org
252 RedirectPermanent / http://metadata.ftp-master.debian.org/