Add deb.d.o vhost
[mirror/dsa-puppet.git] / modules / roles / templates / static-mirroring / vhost / static-vhosts-simple.erb
1 # puppet maintained
2
3 Use common-static-vhost mozilla.debian.net
4 Use common-static-vhost backports.debian.org
5 Use common-static-vhost incoming.debian.org
6 Use common-static-vhost news.debian.net
7 Use common-static-vhost debaday.debian.net
8 Use common-static-vhost debdeltas.debian.net
9 Use common-static-vhost timeline.debian.net
10 Use common-static-vhost-with-extra d-i.debian.org "ServerAlias d-i-backend.debian.org"
11 Use common-static-vhost-with-extra network-test.debian.org "ServerAlias network-test-backend.debian.org"
12 Use common-static-vhost-with-extra blends.debian.org "ServerAlias blends-backend.debian.org"
13 Use common-static-vhost-with-extra wnpp-by-tags.debian.net "ServerAlias wnpp-by-tags-backend.debian.org"
14 Use common-static-vhost-ssl appstream.debian.org
15 Use common-static-vhost-ssl dsa.debian.org
16 Use common-static-vhost-ssl rtc.debian.org
17 Use common-static-vhost-with-extra security-team.debian.org "ServerAlias security-team-backend.debian.org"
18 Use common-static-vhost 10years.debconf.org
19 Use common-static-vhost debconf0.debconf.org
20 Use common-static-vhost debconf1.debconf.org
21 Use common-static-vhost debconf2.debconf.org
22 Use common-static-vhost debconf3.debconf.org
23 Use common-static-vhost debconf4.debconf.org
24 Use common-static-vhost debconf5.debconf.org
25 Use common-static-vhost debconf6.debconf.org
26 Use common-static-vhost debconf7.debconf.org
27 Use common-static-vhost es.debconf.org
28 Use common-static-vhost fr.debconf.org
29 Use common-static-vhost miniconf10.debconf.org
30 Use common-static-vhost deb.debian.org
31
32 # metadata.ftp-master.debian.org
33 <VirtualHost <%= vhost_listen %> >
34         ServerName metadata.ftp-master.debian.org
35         ServerAdmin debian-admin@lists.debian.org
36
37         ErrorLog /var/log/apache2/metadata.ftp-master.debian.org-error.log
38         CustomLog /var/log/apache2/metadata.ftp-master.debian.org-access.log privacy
39
40         Use common-static-base metadata.ftp-master.debian.org
41         AddDefaultCharset utf-8
42         <LocationMatch "/changelogs/(main|contrib|non-free)">
43                 ForceType text/plain
44         </LocationMatch>
45 </VirtualHost>
46
47 # bits.debian.org
48 ######################
49 <Macro static-bits.debian.org-base>
50         ServerName bits.debian.org
51         ServerAdmin debian-admin@lists.debian.org
52
53         ErrorLog /var/log/apache2/bits.debian.org-error.log
54         <IfModule mod_geoip.c>
55                 CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
56         </IfModule>
57
58         Use common-static-base bits.debian.org
59 </Macro>
60
61 <Virtualhost <%= vhost_listen %> >
62         RewriteEngine on
63
64         RewriteEngine On
65         RewriteCond %{REQUEST_URI} !^/feeds/
66         RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R,L]
67         #RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R=301,L]
68
69         Use static-bits.debian.org-base
70         CustomLog /var/log/apache2/bits.debian.org-access.log privacy
71 </VirtualHost>
72
73 <Virtualhost <%= vhost_listen_443 %> >
74         Use static-bits.debian.org-base
75         CustomLog /var/log/apache2/bits.debian.org-access.log privacyssl
76
77         Use common-debian-service-ssl bits.debian.org
78         Use common-ssl-HSTS
79 </VirtualHost>
80
81 # www.backports.org
82 ###################
83 # www.backports.org is the historical place for the backports
84 # website and archive.  It is now a CNAME to backports.debian.org:
85 # redirect http requests.
86 <VirtualHost <%= vhost_listen %> >
87         ServerName www.backports.org
88         ServerAlias lists.backports.org
89         ServerAdmin debian-admin@debian.org
90         RedirectPermanent /debian/           http://backports.debian.org/debian-backports/
91         RedirectPermanent /backports.org/    http://backports.debian.org/debian-backports/
92         RedirectPermanent /debian-backports/ http://backports.debian.org/debian-backports/
93         RedirectPermanent / http://backports.debian.org/
94 </VirtualHost>
95
96
97 # www.ports.debian.org
98 ######################
99 <Virtualhost <%= vhost_listen %> >
100         ServerName www.ports.debian.org
101         ServerAlias www.ports-backend.debian.org
102         ServerAdmin debian-admin@lists.debian.org
103
104         ErrorLog /var/log/apache2/www.ports.debian.org-error.log
105         CustomLog /var/log/apache2/www.ports.debian.org-access.log privacy
106
107         <IfModule mod_userdir.c>
108                 UserDir disabled
109         </IfModule>
110         ServerSignature On
111
112         DocumentRoot /srv/static.debian.org/mirrors/www.ports.debian.org/cur
113         <Directory /srv/static.debian.org/mirrors/www.ports.debian.org/cur>
114                 AllowOverride FileInfo Indexes Options=Multiviews
115                 Options Multiviews Indexes FollowSymLinks Includes
116                 IndexOptions FancyIndexing NameWidth=*
117                 <% if @lsbmajdistrelease > '7' -%>
118                         Require all granted
119                 <% else -%>
120                         Order allow,deny
121                         Allow from all
122                 <% end -%>
123         </Directory>
124
125         AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
126         AddOutputFilter INCLUDES .xhtml
127 </VirtualHost>
128
129 <VirtualHost <%= vhost_listen %> >
130         ServerName www.debian-ports.org
131         ServerAlias debian-ports.org
132         ServerAdmin debian-admin@debian.org
133         RedirectPermanent /archive/           http://archive.ports.debian.org/archive/
134         RedirectPermanent /debian-cd/         http://archive.ports.debian.org/debian-cd/
135         RedirectPermanent /debian-snapshot/   http://archive.ports.debian.org/debian-snapshot/
136         RedirectPermanent /debian/            http://archive.ports.debian.org/debian/
137         RedirectPermanent / http://www.ports.debian.org/
138 </VirtualHost>
139
140 <VirtualHost <%= vhost_listen %> >
141         ServerName ports.debian.net
142         ServerAdmin debian-admin@debian.org
143         RedirectPermanent / http://www.ports.debian.org/
144 </VirtualHost>
145
146 # video.debian.net
147 ###################
148 <VirtualHost <%= vhost_listen %> >
149         ServerName video.debian.net
150         ServerAdmin debian-admin@debian.org
151
152         Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
153 </VirtualHost>
154
155 # historical sites
156 ##################
157 # now only redirects remain
158 <VirtualHost <%= vhost_listen %> >
159         ServerName women.debian.org
160         ServerAdmin debian-admin@debian.org
161
162         RedirectPermanent / http://www.debian.org/women/
163
164         RedirectPermanent /about/ http://www.debian.org/women/about
165         RedirectPermanent /contact/ http://www.debian.org/women/contact
166         RedirectPermanent /faqs/ http://www.debian.org/women/faq
167         RedirectPermanent /home/ http://www.debian.org/women/
168         RedirectPermanent /images/dw.png http://www.debian.org/women/dw.png
169         RedirectPermanent /involvement/ http://www.debian.org/women/participate
170         RedirectPermanent /mentoring/ http://www.debian.org/women/mentoring
171         RedirectPermanent /press/ http://wiki.debian.org/DebianWomen/Press
172         RedirectPermanent /profiles/ http://www.debian.org/women/profiles/
173 </VirtualHost>
174
175 <VirtualHost <%= vhost_listen %> >
176         ServerName volatile.debian.org
177         ServerAlias volatile-master.debian.org
178         ServerAdmin debian-admin@debian.org
179         RedirectPermanent / http://www.debian.org/volatile/
180 </VirtualHost>
181
182 <VirtualHost <%= vhost_listen %> >
183         ServerName ftp-master.metadata.debian.org
184         ServerAdmin debian-admin@debian.org
185         RedirectPermanent / http://metadata.ftp-master.debian.org/
186 </VirtualHost>
187
188 # vim:ft=apache: