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
27 # Rewrite away double slashes
29 RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ [NC]
30 RewriteRule . %1/%2 [R=301,L,NE]
32 <LocationMatch "/changelogs/(main|contrib|non-free)">
37 <Macro vstatic-vhost-extra-release.debian.org>
39 RewriteRule ^/migration/$ /migration/testing.pl
40 RewriteRule ^/migration/search/(.+)/$ /migration/testing.pl?package=$1
41 RewriteCond %{QUERY_STRING} package=((.)(.*))
42 RewriteRule ^/migration/testing.pl /migration/cache/%2/%1.html [PT,L]
43 RewriteRule ^/migration/testing.pl /migration/cache/_index.html
45 Alias /proposed-updates/ /srv/static.debian.org/mirrors/release.debian.org-pu/cur/
46 <Directory /srv/static.debian.org/mirrors/release.debian.org-pu/cur>
48 Options Indexes SymLinksIfOwnerMatch MultiViews
49 IndexOptions FancyIndexing NameWidth=*
52 FilterDeclare gzip CONTENT_SET
53 FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"
57 AddDefaultCharset utf-8
62 <Macro vstatic-vhost-extra-www.ports.debian.org>
63 <Directory /srv/static.debian.org/mirrors/www.ports.debian.org/cur>
64 AllowOverride FileInfo Indexes Options=Multiviews
65 Options Multiviews Indexes FollowSymLinks Includes
66 IndexOptions FancyIndexing NameWidth=*
70 AddOutputFilter INCLUDES .xhtml
74 <Macro vstatic-vhost-extra-lintian.debian.org>
75 AddDefaultCharset utf-8
77 <Directory /srv/static.debian.org/mirrors/lintian.debian.org/cur>
80 # These three lines makes apache serve
81 # "lintian.log.gz" as a text/plain with encoding gzip
82 # making it easier to view the log in the browser.
84 AddEncoding x-gzip .gz
85 AddType text/plain .log
87 <IfModule mod_userdir.c>
88 AddOutputFilterByType DEFLATE image/svg+xml
89 AddOutputFilterByType DEFLATE text/plain
93 <Directory /srv/static.debian.org/mirrors/lintian.debian.org/cur/resources>
94 # Cache these for a year (3600 * 24 * 365.25)
95 # Files in here will change name if their content change
96 Header set Cache-Control "max-age=31557600, public"
100 RewriteMap source-map txt:/srv/static.debian.org/mirrors/lintian.debian.org/cur/lookup-tables/source-packages
102 # Re-direct from the "old" locations to the new ones
103 RewriteRule ^/reports/T(.*)\.html$ /tags/$1.html [L,R=permanent]
104 RewriteRule ^/reports/(.*)$ /$1 [L,R=permanent]
106 # Map source packages to reports (this mapping is re-written once per lintian run,
107 # serve it as a 302 rather than a permanent redirect)
108 # Version-less request
109 RewriteRule ^/source/([a-z0-9-]+)/?$ /${source-map:$1} [L,R,NE]
111 RewriteRule ^/source/([a-z0-9-]+)/([a-zA-Z0-9.+:~-]+)$ /${source-map:$1/$2} [L,R,NE]
116 def vhost(lines, sn, kwargs={})
117 if scope.function_has_static_component([sn])
118 if not kwargs[:extra]
119 lines << "<Macro vstatic-vhost-extra-#{sn}>"
120 lines << " # mod macro does not like empty macros, so here's some content:"
121 lines << " <Directory /non-existant>"
122 lines << " </Directory>"
126 lines << "Use prepare-static-vhost #{sn}"
128 if kwargs[:ssl] and kwargs[:ssl_optional]
129 lines << "Use static-vhost-plain-#{sn}"
130 lines << "Use static-vhost-ssl-#{sn}"
132 lines << "Use common-dsa-vhost-https-redirect #{sn}"
133 lines << "Use static-vhost-ssl-#{sn}"
135 lines << "Use static-vhost-plain-#{sn}"
138 onion = scope.function_onion_global_service_hostname([sn])
139 lines << "Use static-vhost-onion-#{sn} #{onion}" if onion
146 vhost(lines, "mozilla.debian.net" , :ssl => true, :ssl_optional => true)
147 vhost(lines, "backports.debian.org" , :ssl => true)
148 vhost(lines, "incoming.debian.org" , :ssl => true, :ssl_optional => true)
149 vhost(lines, "incoming.ports.debian.org" , :ssl => true, :ssl_optional => true)
150 vhost(lines, "debdeltas.debian.net" , :ssl => true, :ssl_optional => true)
151 vhost(lines, "news.debian.net" , :ssl => true)
152 vhost(lines, "bootstrap.debian.net" , :ssl => true)
153 vhost(lines, "debaday.debian.net" , :ssl => true)
154 vhost(lines, "timeline.debian.net" , :ssl => true)
155 vhost(lines, "network-test.debian.org" , :extra => true)
156 vhost(lines, "blends.debian.org" , :ssl => true)
157 vhost(lines, "wnpp-by-tags.debian.net" , :ssl => true)
158 vhost(lines, "security-team.debian.org" , :ssl => true)
159 vhost(lines, "d-i.debian.org" , :ssl => true)
160 vhost(lines, "appstream.debian.org" , :ssl => true)
161 vhost(lines, "dsa.debian.org" , :ssl => true)
162 vhost(lines, "rtc.debian.org" , :ssl => true)
163 vhost(lines, "onion.debian.org" , :ssl => true)
165 vhost(lines, "bits.debian.org" , :ssl => true, :extra => true)
166 vhost(lines, "micronews.debian.org" , :ssl => true)
167 vhost(lines, "metadata.ftp-master.debian.org", :extra => true)
169 vhost(lines, "10years.debconf.org" , :ssl => true)
170 vhost(lines, "debconf0.debconf.org" , :ssl => true)
171 vhost(lines, "debconf1.debconf.org" , :ssl => true)
172 vhost(lines, "debconf2.debconf.org" , :ssl => true)
173 vhost(lines, "debconf3.debconf.org" , :ssl => true)
174 vhost(lines, "debconf4.debconf.org" , :ssl => true)
175 vhost(lines, "debconf5.debconf.org" , :ssl => true)
176 vhost(lines, "debconf6.debconf.org" , :ssl => true)
177 vhost(lines, "debconf7.debconf.org" , :ssl => true)
178 vhost(lines, "debconf16.debconf.org" , :ssl => true)
179 vhost(lines, "es.debconf.org" , :ssl => true)
180 vhost(lines, "fr.debconf.org" , :ssl => true)
181 vhost(lines, "miniconf10.debconf.org" , :ssl => true)
183 vhost(lines, "deb.debian.org" , :extra => true)
184 vhost(lines, "release.debian.org" , :ssl => true, :extra => true)
185 vhost(lines, "www.ports.debian.org" , :ssl => true, :extra => true)
186 vhost(lines, "lintian.debian.org" , :ssl => true, :extra => true)
193 # www.backports.org is the historical place for the backports
194 # website and archive. It is now a CNAME to backports.debian.org:
195 # redirect http requests.
196 <VirtualHost <%= vhost_listen %> >
197 ServerName www.backports.org
198 ServerAlias lists.backports.org
199 ServerAdmin debian-admin@debian.org
200 RedirectPermanent / http://backports.debian.org/
203 ######################
204 <VirtualHost <%= vhost_listen %> >
205 ServerName www.debian-ports.org
206 ServerAlias debian-ports.org
207 ServerAdmin debian-admin@debian.org
208 RedirectPermanent / https://www.ports.debian.org/
211 <VirtualHost <%= vhost_listen %> >
212 ServerName ports.debian.org
213 ServerAlias ports.debian.net
214 ServerAdmin debian-admin@debian.org
215 RedirectPermanent / https://www.ports.debian.org/
218 <VirtualHost <%= vhost_listen %> >
219 ServerName incoming.debian-ports.org
220 ServerAdmin debian-admin@debian.org
221 RedirectPermanent / http://incoming.ports.debian.org/
224 <VirtualHost <%= vhost_listen %> >
225 ServerName ftp.debian-ports.org
226 ServerAdmin debian-admin@debian.org
227 RedirectPermanent /archive http://www.ports.debian.org
228 RedirectPermanent /debian http://ftp.ports.debian.org/debian-ports
229 RedirectPermanent /debian-cd http://ftp.ports.debian.org/debian-ports-cd
230 RedirectPermanent / http://ftp.ports.debian.org/
233 <VirtualHost <%= vhost_listen %> >
234 ServerName video.debian.net
235 ServerAdmin debian-admin@debian.org
236 Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
241 # now only redirects remain
242 <VirtualHost <%= vhost_listen %> >
243 ServerName women.debian.org
244 ServerAdmin debian-admin@debian.org
246 RedirectPermanent / http://www.debian.org/women/
248 RedirectPermanent /about/ http://www.debian.org/women/about
249 RedirectPermanent /contact/ http://www.debian.org/women/contact
250 RedirectPermanent /faqs/ http://www.debian.org/women/faq
251 RedirectPermanent /home/ http://www.debian.org/women/
252 RedirectPermanent /images/dw.png http://www.debian.org/women/dw.png
253 RedirectPermanent /involvement/ http://www.debian.org/women/participate
254 RedirectPermanent /mentoring/ http://www.debian.org/women/mentoring
255 RedirectPermanent /press/ http://wiki.debian.org/DebianWomen/Press
256 RedirectPermanent /profiles/ http://www.debian.org/women/profiles/
259 <VirtualHost <%= vhost_listen %> >
260 ServerName volatile.debian.org
261 ServerAlias volatile-master.debian.org
262 ServerAdmin debian-admin@debian.org
263 RedirectPermanent / http://www.debian.org/volatile/
266 <VirtualHost <%= vhost_listen %> >
267 ServerName ftp-master.metadata.debian.org
268 ServerAdmin debian-admin@debian.org
269 RedirectPermanent / http://metadata.ftp-master.debian.org/