Pull in people.d.o apache config
[mirror/dsa-puppet.git] / modules / roles / templates / apache-people.debian.org.conf.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://git@ubergit.debian.org/dsa/dsa-puppet.git
4 ##
5
6 Use common-debian-service-https-redirect * people.debian.org
7
8 <Macro vhost-inner-people.debian.org>
9         ServerAdmin debian-admin@debian.org
10         DocumentRoot /srv/people.debian.org/htdocs
11
12         ErrorLog /var/log/apache2/people.debian.org-error.log
13         CustomLog /var/log/apache2/people.debian.org-access.log privacy
14
15         HostnameLookups Off
16         UseCanonicalName Off
17         ServerSignature On
18
19         UserDir public_html
20
21         IndexOptions FancyIndexing NameWidth=*
22         ReadmeName README.txt
23
24         RedirectMatch ^/$ https://db.debian.org/
25 </Macro>
26
27 <VirtualHost <%= @vhost_listen %> >
28         ServerName people.debian.org
29
30         Use common-debian-service-ssl people.debian.org
31         Use common-ssl-HSTS
32         Use http-pkp-people.debian.org
33         Use vhost-inner-people.debian.org
34 </VirtualHost>
35
36 <VirtualHost *:80>
37         ServerName nossl.people.debian.org
38         Use vhost-inner-people.debian.org
39 </VirtualHost>
40
41 <VirtualHost *:80>
42         ServerName <%= @onion_hn %>
43         Use vhost-inner-people.debian.org
44 </VirtualHost>
45