5 <% if scope.function_has_static_component(['deb.debian.org']) -%>
6 <Macro vstatic-vhost-extra-deb.debian.org>
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 vstatic-vhost-extra-network-test.debian.org>
15 ServerAlias network-test-backend.debian.org
18 <Macro vstatic-vhost-extra-bits.debian.org>
19 <IfModule mod_geoip.c>
20 CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
24 <Macro vstatic-vhost-extra-metadata.ftp-master.debian.org>
25 AddDefaultCharset utf-8
26 <LocationMatch "/changelogs/(main|contrib|non-free)">
31 <Macro vstatic-vhost-extra-release.debian.org>
33 RewriteRule ^/migration/$ /migration/testing.pl
34 RewriteRule ^/migration/search/(.+)/$ /migration/testing.pl?package=$1
35 RewriteCond %{QUERY_STRING} package=((.)(.*))
36 RewriteRule ^/migration/testing.pl /migration/cache/%2/%1.html [PT,L]
37 RewriteRule ^/migration/testing.pl /migration/cache/_index.html
39 Alias /proposed-updates/ /srv/static.debian.org/mirrors/release.debian.org-pu/cur/
40 <Directory /srv/static.debian.org/mirrors/release.debian.org-pu/cur>
42 Options Indexes SymLinksIfOwnerMatch MultiViews
43 IndexOptions FancyIndexing NameWidth=*
46 FilterDeclare gzip CONTENT_SET
47 FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"
51 AddDefaultCharset utf-8
56 <Macro vstatic-vhost-extra-www.ports.debian.org>
57 <Directory /srv/static.debian.org/mirrors/www.ports.debian.org/cur>
58 AllowOverride FileInfo Indexes Options=Multiviews
59 Options Multiviews Indexes FollowSymLinks Includes
60 IndexOptions FancyIndexing NameWidth=*
64 AddOutputFilter INCLUDES .xhtml
68 <Macro vstatic-vhost-extra-lintian.debian.org>
69 AddDefaultCharset utf-8
71 <Directory /srv/static.debian.org/mirrors/lintian.debian.org/cur>
74 # These three lines makes apache serve
75 # "lintian.log.gz" as a text/plain with encoding gzip
76 # making it easier to view the log in the browser.
78 AddEncoding x-gzip .gz
79 AddType text/plain .log
81 <IfModule mod_userdir.c>
82 AddOutputFilterByType DEFLATE image/svg+xml
83 AddOutputFilterByType DEFLATE text/plain
87 <Directory /srv/static.debian.org/mirrors/lintian.debian.org/cur/resources>
88 # Cache these for a year (3600 * 24 * 365.25)
89 # Files in here will change name if their content change
90 Header set Cache-Control "max-age=31557600, public"
94 RewriteMap source-map txt:/srv/static.debian.org/mirrors/lintian.debian.org/cur/lookup-tables/source-packages
96 # Re-direct from the "old" locations to the new ones
97 RewriteRule ^/reports/T(.*)\.html$ /tags/$1.html [L,R=permanent]
98 RewriteRule ^/reports/(.*)$ /$1 [L,R=permanent]
100 # Map source packages to reports (this mapping is re-written once per lintian run,
101 # serve it as a 302 rather than a permanent redirect)
102 # Version-less request
103 RewriteRule ^/source/([a-z0-9-]+)/?$ /${source-map:$1} [L,R,NE]
105 RewriteRule ^/source/([a-z0-9-]+)/([a-zA-Z0-9.+:~-]+)$ /${source-map:$1/$2} [L,R,NE]
110 def vhost(lines, sn, kwargs={})
111 if scope.function_has_static_component([sn])
112 if not kwargs[:extra]
113 lines << "<Macro vstatic-vhost-extra-#{sn}>"
114 lines << " # mod macro does not like empty macros, so here's some content:"
115 lines << " <Directory /non-existant>"
116 lines << " </Directory>"
120 lines << "Use prepare-static-vhost #{sn}"
122 if kwargs[:ssl] and kwargs[:ssl_optional]
123 lines << "Use static-vhost-plain-#{sn}"
124 lines << "Use static-vhost-ssl-#{sn}"
126 lines << "Use common-dsa-vhost-https-redirect #{sn}"
127 lines << "Use static-vhost-ssl-#{sn}"
129 lines << "Use static-vhost-plain-#{sn}"
132 onion = scope.function_onion_global_service_hostname([sn])
133 lines << "Use static-vhost-onion-#{sn} #{onion}" if onion
140 vhost(lines, "mozilla.debian.net" , :ssl => true, :ssl_optional => true)
141 vhost(lines, "backports.debian.org" , :ssl => true)
142 vhost(lines, "incoming.debian.org" , :ssl => true, :ssl_optional => true)
143 vhost(lines, "incoming.ports.debian.org" , :ssl => true, :ssl_optional => true)
144 vhost(lines, "debdeltas.debian.net" , :ssl => true, :ssl_optional => true)
145 vhost(lines, "news.debian.net" , :ssl => true)
146 #vhost(lines, "bootstrap.debian.net" , :ssl => true)
147 vhost(lines, "bootstrap.debian.net" )
148 vhost(lines, "debaday.debian.net" , :ssl => true)
149 vhost(lines, "timeline.debian.net" , :ssl => true)
150 vhost(lines, "network-test.debian.org" , :extra => true)
151 vhost(lines, "blends.debian.org" , :ssl => true)
152 vhost(lines, "wnpp-by-tags.debian.net" , :ssl => true)
153 vhost(lines, "security-team.debian.org" , :ssl => true)
154 vhost(lines, "d-i.debian.org" , :ssl => true)
155 vhost(lines, "appstream.debian.org" , :ssl => true)
156 vhost(lines, "dsa.debian.org" , :ssl => true)
157 vhost(lines, "rtc.debian.org" , :ssl => true)
158 vhost(lines, "onion.debian.org" , :ssl => true)
160 vhost(lines, "bits.debian.org" , :ssl => true, :extra => true)
161 vhost(lines, "micronews.debian.net" , :ssl => true)
162 vhost(lines, "metadata.ftp-master.debian.org", :extra => true)
164 vhost(lines, "10years.debconf.org" , :ssl => true)
165 vhost(lines, "debconf0.debconf.org" , :ssl => true)
166 vhost(lines, "debconf1.debconf.org" , :ssl => true)
167 vhost(lines, "debconf2.debconf.org" , :ssl => true)
168 vhost(lines, "debconf3.debconf.org" , :ssl => true)
169 vhost(lines, "debconf4.debconf.org" , :ssl => true)
170 vhost(lines, "debconf5.debconf.org" , :ssl => true)
171 vhost(lines, "debconf6.debconf.org" , :ssl => true)
172 vhost(lines, "debconf7.debconf.org" , :ssl => true)
173 vhost(lines, "debconf16.debconf.org" , :ssl => true)
174 vhost(lines, "es.debconf.org" , :ssl => true)
175 vhost(lines, "fr.debconf.org" , :ssl => true)
176 vhost(lines, "miniconf10.debconf.org" , :ssl => true)
178 vhost(lines, "deb.debian.org" , :extra => true)
179 vhost(lines, "release.debian.org" , :ssl => true, :extra => true)
180 vhost(lines, "www.ports.debian.org" , :ssl => true, :extra => true)
181 vhost(lines, "lintian.debian.org" , :ssl => true, :extra => true)
188 # www.backports.org is the historical place for the backports
189 # website and archive. It is now a CNAME to backports.debian.org:
190 # redirect http requests.
191 <VirtualHost <%= vhost_listen %> >
192 ServerName www.backports.org
193 ServerAlias lists.backports.org
194 ServerAdmin debian-admin@debian.org
195 RedirectPermanent / http://backports.debian.org/
198 ######################
199 <VirtualHost <%= vhost_listen %> >
200 ServerName www.debian-ports.org
201 ServerAlias debian-ports.org
202 ServerAdmin debian-admin@debian.org
203 RedirectPermanent / https://www.ports.debian.org/
206 <VirtualHost <%= vhost_listen %> >
207 ServerName ports.debian.org
208 ServerAlias ports.debian.net
209 ServerAdmin debian-admin@debian.org
210 RedirectPermanent / https://www.ports.debian.org/
213 <VirtualHost <%= vhost_listen %> >
214 ServerName incoming.debian-ports.org
215 ServerAdmin debian-admin@debian.org
216 RedirectPermanent / http://incoming.ports.debian.org/
219 <VirtualHost <%= vhost_listen %> >
220 ServerName ftp.debian-ports.org
221 ServerAdmin debian-admin@debian.org
222 RedirectPermanent /archive http://www.ports.debian.org
223 RedirectPermanent /debian http://ftp.ports.debian.org/debian-ports
224 RedirectPermanent /debian-cd http://ftp.ports.debian.org/debian-ports-cd
225 RedirectPermanent / http://ftp.ports.debian.org/
228 <VirtualHost <%= vhost_listen %> >
229 ServerName video.debian.net
230 ServerAdmin debian-admin@debian.org
231 Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
236 # now only redirects remain
237 <VirtualHost <%= vhost_listen %> >
238 ServerName women.debian.org
239 ServerAdmin debian-admin@debian.org
241 RedirectPermanent / http://www.debian.org/women/
243 RedirectPermanent /about/ http://www.debian.org/women/about
244 RedirectPermanent /contact/ http://www.debian.org/women/contact
245 RedirectPermanent /faqs/ http://www.debian.org/women/faq
246 RedirectPermanent /home/ http://www.debian.org/women/
247 RedirectPermanent /images/dw.png http://www.debian.org/women/dw.png
248 RedirectPermanent /involvement/ http://www.debian.org/women/participate
249 RedirectPermanent /mentoring/ http://www.debian.org/women/mentoring
250 RedirectPermanent /press/ http://wiki.debian.org/DebianWomen/Press
251 RedirectPermanent /profiles/ http://www.debian.org/women/profiles/
254 <VirtualHost <%= vhost_listen %> >
255 ServerName volatile.debian.org
256 ServerAlias volatile-master.debian.org
257 ServerAdmin debian-admin@debian.org
258 RedirectPermanent / http://www.debian.org/volatile/
261 <VirtualHost <%= vhost_listen %> >
262 ServerName ftp-master.metadata.debian.org
263 ServerAdmin debian-admin@debian.org
264 RedirectPermanent / http://metadata.ftp-master.debian.org/