5 def vhost(lines, sn, type=nil, extra=nil)
6 if scope.function_has_static_component([sn])
7 t = 'common-static-vhost'
8 if type then t += "-#{type}"; end
11 if extra then e += " #{extra}"; end
13 lines << "Use #{t} #{sn}#{e}"
18 vhost(lines, "mozilla.debian.net")
19 vhost(lines, "backports.debian.org")
20 vhost(lines, "incoming.debian.org")
21 vhost(lines, "debdeltas.debian.net")
22 vhost(lines, "news.debian.net" , "ssl")
23 vhost(lines, "debaday.debian.net" , "ssl")
24 vhost(lines, "timeline.debian.net" , "ssl")
25 vhost(lines, "network-test.debian.org" , "with-extra", '"ServerAlias network-test-backend.debian.org"')
26 vhost(lines, "blends.debian.org" , "with-extra", '"ServerAlias blends-backend.debian.org"')
27 vhost(lines, "wnpp-by-tags.debian.net" , "with-extra", '"ServerAlias wnpp-by-tags-backend.debian.org"')
28 vhost(lines, "security-team.debian.org", "with-extra", '"ServerAlias security-team-backend.debian.org"')
29 vhost(lines, "d-i.debian.org" , "ssl")
30 vhost(lines, "appstream.debian.org", "ssl")
31 vhost(lines, "dsa.debian.org" , "ssl")
32 vhost(lines, "rtc.debian.org" , "ssl")
34 vhost(lines, "10years.debconf.org" , "ssl")
35 vhost(lines, "debconf0.debconf.org", "ssl")
36 vhost(lines, "debconf1.debconf.org", "ssl")
37 vhost(lines, "debconf2.debconf.org", "ssl")
38 vhost(lines, "debconf3.debconf.org", "ssl")
39 vhost(lines, "debconf4.debconf.org", "ssl")
40 vhost(lines, "debconf5.debconf.org", "ssl")
41 vhost(lines, "debconf6.debconf.org", "ssl")
42 vhost(lines, "debconf7.debconf.org", "ssl")
43 vhost(lines, "es.debconf.org" , "ssl")
44 vhost(lines, "fr.debconf.org" , "ssl")
45 vhost(lines, "miniconf10.debconf.org" , "ssl")
47 vhost(lines, "deb.debian.org")
52 ######################
53 # metadata.ftp-master.debian.org
54 <% if scope.function_has_static_component(['metadata.ftp-master.debian.org']) -%>
55 <VirtualHost <%= vhost_listen %> >
56 ServerName metadata.ftp-master.debian.org
57 ServerAdmin debian-admin@lists.debian.org
59 ErrorLog /var/log/apache2/metadata.ftp-master.debian.org-error.log
60 CustomLog /var/log/apache2/metadata.ftp-master.debian.org-access.log privacy
62 Use common-static-base metadata.ftp-master.debian.org
63 AddDefaultCharset utf-8
64 <LocationMatch "/changelogs/(main|contrib|non-free)">
70 ######################
72 <% if scope.function_has_static_component(['bits.debian.org']) -%>
73 <Macro static-bits.debian.org-base>
74 ServerName bits.debian.org
75 ServerAdmin debian-admin@lists.debian.org
77 ErrorLog /var/log/apache2/bits.debian.org-error.log
78 <IfModule mod_geoip.c>
79 CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
82 Use common-static-base bits.debian.org
85 <Virtualhost <%= vhost_listen %> >
89 RewriteCond %{REQUEST_URI} !^/feeds/
90 RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R,L]
91 #RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R=301,L]
93 Use static-bits.debian.org-base
94 CustomLog /var/log/apache2/bits.debian.org-access.log privacy
97 <Virtualhost <%= vhost_listen_443 %> >
98 Use static-bits.debian.org-base
99 CustomLog /var/log/apache2/bits.debian.org-access.log privacyssl
101 Use common-debian-service-ssl bits.debian.org
108 # www.backports.org is the historical place for the backports
109 # website and archive. It is now a CNAME to backports.debian.org:
110 # redirect http requests.
111 <VirtualHost <%= vhost_listen %> >
112 ServerName www.backports.org
113 ServerAlias lists.backports.org
114 ServerAdmin debian-admin@debian.org
115 RedirectPermanent / http://backports.debian.org/
118 ######################
119 # www.ports.debian.org
120 <% if scope.function_has_static_component(['www.ports.debian.org']) -%>
121 <Virtualhost <%= vhost_listen %> >
122 ServerName www.ports.debian.org
123 ServerAlias www.ports-backend.debian.org
124 ServerAdmin debian-admin@lists.debian.org
126 ErrorLog /var/log/apache2/www.ports.debian.org-error.log
127 CustomLog /var/log/apache2/www.ports.debian.org-access.log privacy
129 <IfModule mod_userdir.c>
134 DocumentRoot /srv/static.debian.org/mirrors/www.ports.debian.org/cur
135 <Directory /srv/static.debian.org/mirrors/www.ports.debian.org/cur>
136 AllowOverride FileInfo Indexes Options=Multiviews
137 Options Multiviews Indexes FollowSymLinks Includes
138 IndexOptions FancyIndexing NameWidth=*
139 <% if @lsbmajdistrelease > '7' -%>
147 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
148 AddOutputFilter INCLUDES .xhtml
152 <VirtualHost <%= vhost_listen %> >
153 ServerName www.debian-ports.org
154 ServerAlias debian-ports.org
155 ServerAdmin debian-admin@debian.org
156 RedirectPermanent /archive/ http://archive.ports.debian.org/archive/
157 RedirectPermanent /debian-cd/ http://archive.ports.debian.org/debian-cd/
158 RedirectPermanent /debian-snapshot/ http://archive.ports.debian.org/debian-snapshot/
159 RedirectPermanent /debian/ http://archive.ports.debian.org/debian/
160 RedirectPermanent / http://www.ports.debian.org/
163 <VirtualHost <%= vhost_listen %> >
164 ServerName ports.debian.net
165 ServerAdmin debian-admin@debian.org
166 RedirectPermanent / http://www.ports.debian.org/
171 <VirtualHost <%= vhost_listen %> >
172 ServerName video.debian.net
173 ServerAdmin debian-admin@debian.org
175 Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
180 # now only redirects remain
181 <VirtualHost <%= vhost_listen %> >
182 ServerName women.debian.org
183 ServerAdmin debian-admin@debian.org
185 RedirectPermanent / http://www.debian.org/women/
187 RedirectPermanent /about/ http://www.debian.org/women/about
188 RedirectPermanent /contact/ http://www.debian.org/women/contact
189 RedirectPermanent /faqs/ http://www.debian.org/women/faq
190 RedirectPermanent /home/ http://www.debian.org/women/
191 RedirectPermanent /images/dw.png http://www.debian.org/women/dw.png
192 RedirectPermanent /involvement/ http://www.debian.org/women/participate
193 RedirectPermanent /mentoring/ http://www.debian.org/women/mentoring
194 RedirectPermanent /press/ http://wiki.debian.org/DebianWomen/Press
195 RedirectPermanent /profiles/ http://www.debian.org/women/profiles/
198 <VirtualHost <%= vhost_listen %> >
199 ServerName volatile.debian.org
200 ServerAlias volatile-master.debian.org
201 ServerAdmin debian-admin@debian.org
202 RedirectPermanent / http://www.debian.org/volatile/
205 <VirtualHost <%= vhost_listen %> >
206 ServerName ftp-master.metadata.debian.org
207 ServerAdmin debian-admin@debian.org
208 RedirectPermanent / http://metadata.ftp-master.debian.org/