3 <% if scope.function_has_static_component(['XXX']) -%>
8 def vhost(lines, sn, type=nil, extra=nil)
9 if scope.function_has_static_component([sn])
10 t = 'common-static-vhost'
11 if type then t += "-#{type}"; end
14 if extra then e += " #{extra}"; end
16 lines << "Use #{t} #{sn}#{e}"
21 vhost(lines, "mozilla.debian.net")
22 vhost(lines, "backports.debian.org")
23 vhost(lines, "incoming.debian.org")
24 vhost(lines, "news.debian.net")
25 vhost(lines, "debaday.debian.net")
26 vhost(lines, "debdeltas.debian.net")
27 vhost(lines, "timeline.debian.net")
28 vhost(lines, "network-test.debian.org" , "with-extra", '"ServerAlias network-test-backend.debian.org"')
29 vhost(lines, "blends.debian.org" , "with-extra", '"ServerAlias blends-backend.debian.org"')
30 vhost(lines, "wnpp-by-tags.debian.net" , "with-extra", '"ServerAlias wnpp-by-tags-backend.debian.org"')
31 vhost(lines, "security-team.debian.org", "with-extra", '"ServerAlias security-team-backend.debian.org"')
32 vhost(lines, "d-i.debian.org" , "ssl")
33 vhost(lines, "appstream.debian.org", "ssl")
34 vhost(lines, "dsa.debian.org" , "ssl")
35 vhost(lines, "rtc.debian.org" , "ssl")
37 vhost(lines, "10years.debconf.org")
38 vhost(lines, "debconf0.debconf.org", "ssl")
39 vhost(lines, "debconf1.debconf.org", "ssl")
40 vhost(lines, "debconf2.debconf.org")
41 vhost(lines, "debconf3.debconf.org")
42 vhost(lines, "debconf4.debconf.org")
43 vhost(lines, "debconf5.debconf.org")
44 vhost(lines, "debconf6.debconf.org")
45 vhost(lines, "debconf7.debconf.org")
46 vhost(lines, "es.debconf.org")
47 vhost(lines, "fr.debconf.org")
48 vhost(lines, "miniconf10.debconf.org")
50 vhost(lines, "deb.debian.org")
55 ######################
56 # metadata.ftp-master.debian.org
57 <% if scope.function_has_static_component(['metadata.ftp-master.debian.org']) -%>
58 <VirtualHost <%= vhost_listen %> >
59 ServerName metadata.ftp-master.debian.org
60 ServerAdmin debian-admin@lists.debian.org
62 ErrorLog /var/log/apache2/metadata.ftp-master.debian.org-error.log
63 CustomLog /var/log/apache2/metadata.ftp-master.debian.org-access.log privacy
65 Use common-static-base metadata.ftp-master.debian.org
66 AddDefaultCharset utf-8
67 <LocationMatch "/changelogs/(main|contrib|non-free)">
73 ######################
75 <% if scope.function_has_static_component(['bits.debian.org']) -%>
76 <Macro static-bits.debian.org-base>
77 ServerName bits.debian.org
78 ServerAdmin debian-admin@lists.debian.org
80 ErrorLog /var/log/apache2/bits.debian.org-error.log
81 <IfModule mod_geoip.c>
82 CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
85 Use common-static-base bits.debian.org
88 <Virtualhost <%= vhost_listen %> >
92 RewriteCond %{REQUEST_URI} !^/feeds/
93 RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R,L]
94 #RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R=301,L]
96 Use static-bits.debian.org-base
97 CustomLog /var/log/apache2/bits.debian.org-access.log privacy
100 <Virtualhost <%= vhost_listen_443 %> >
101 Use static-bits.debian.org-base
102 CustomLog /var/log/apache2/bits.debian.org-access.log privacyssl
104 Use common-debian-service-ssl bits.debian.org
111 # www.backports.org is the historical place for the backports
112 # website and archive. It is now a CNAME to backports.debian.org:
113 # redirect http requests.
114 <VirtualHost <%= vhost_listen %> >
115 ServerName www.backports.org
116 ServerAlias lists.backports.org
117 ServerAdmin debian-admin@debian.org
118 RedirectPermanent /debian/ http://backports.debian.org/debian-backports/
119 RedirectPermanent /backports.org/ http://backports.debian.org/debian-backports/
120 RedirectPermanent /debian-backports/ http://backports.debian.org/debian-backports/
121 RedirectPermanent / http://backports.debian.org/
124 ######################
125 # www.ports.debian.org
126 <% if scope.function_has_static_component(['www.ports.debian.org']) -%>
127 <Virtualhost <%= vhost_listen %> >
128 ServerName www.ports.debian.org
129 ServerAlias www.ports-backend.debian.org
130 ServerAdmin debian-admin@lists.debian.org
132 ErrorLog /var/log/apache2/www.ports.debian.org-error.log
133 CustomLog /var/log/apache2/www.ports.debian.org-access.log privacy
135 <IfModule mod_userdir.c>
140 DocumentRoot /srv/static.debian.org/mirrors/www.ports.debian.org/cur
141 <Directory /srv/static.debian.org/mirrors/www.ports.debian.org/cur>
142 AllowOverride FileInfo Indexes Options=Multiviews
143 Options Multiviews Indexes FollowSymLinks Includes
144 IndexOptions FancyIndexing NameWidth=*
145 <% if @lsbmajdistrelease > '7' -%>
153 AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
154 AddOutputFilter INCLUDES .xhtml
158 <VirtualHost <%= vhost_listen %> >
159 ServerName www.debian-ports.org
160 ServerAlias debian-ports.org
161 ServerAdmin debian-admin@debian.org
162 RedirectPermanent /archive/ http://archive.ports.debian.org/archive/
163 RedirectPermanent /debian-cd/ http://archive.ports.debian.org/debian-cd/
164 RedirectPermanent /debian-snapshot/ http://archive.ports.debian.org/debian-snapshot/
165 RedirectPermanent /debian/ http://archive.ports.debian.org/debian/
166 RedirectPermanent / http://www.ports.debian.org/
169 <VirtualHost <%= vhost_listen %> >
170 ServerName ports.debian.net
171 ServerAdmin debian-admin@debian.org
172 RedirectPermanent / http://www.ports.debian.org/
177 <VirtualHost <%= vhost_listen %> >
178 ServerName video.debian.net
179 ServerAdmin debian-admin@debian.org
181 Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
186 # now only redirects remain
187 <VirtualHost <%= vhost_listen %> >
188 ServerName women.debian.org
189 ServerAdmin debian-admin@debian.org
191 RedirectPermanent / http://www.debian.org/women/
193 RedirectPermanent /about/ http://www.debian.org/women/about
194 RedirectPermanent /contact/ http://www.debian.org/women/contact
195 RedirectPermanent /faqs/ http://www.debian.org/women/faq
196 RedirectPermanent /home/ http://www.debian.org/women/
197 RedirectPermanent /images/dw.png http://www.debian.org/women/dw.png
198 RedirectPermanent /involvement/ http://www.debian.org/women/participate
199 RedirectPermanent /mentoring/ http://www.debian.org/women/mentoring
200 RedirectPermanent /press/ http://wiki.debian.org/DebianWomen/Press
201 RedirectPermanent /profiles/ http://www.debian.org/women/profiles/
204 <VirtualHost <%= vhost_listen %> >
205 ServerName volatile.debian.org
206 ServerAlias volatile-master.debian.org
207 ServerAdmin debian-admin@debian.org
208 RedirectPermanent / http://www.debian.org/volatile/
211 <VirtualHost <%= vhost_listen %> >
212 ServerName ftp-master.metadata.debian.org
213 ServerAdmin debian-admin@debian.org
214 RedirectPermanent / http://metadata.ftp-master.debian.org/