b44eec3dfd175934b97659829800449966933949
[mirror/dsa-puppet.git] / modules / roles / templates / apache-ftp.debian.org.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 <VirtualHost <%= @vhost_listen %>>
7         ServerAdmin debian-admin@debian.org
8         ServerName ftp.debian.org
9         ServerAlias debian.anycast-test.mirrors.debian.org
10         <% if scope.function_onion_global_service_hostname(['ftp.debian.org']) -%>
11         ServerAlias <%= scope.function_onion_global_service_hostname(['ftp.debian.org']) %>
12         <% end %>
13         ServerAlias debian.backend.mirrors.debian.org
14         ServerAlias *.debian.backend.mirrors.debian.org
15
16         AddCharset UTF-8 .txt
17
18         RedirectMatch "^/$" /debian/
19         RedirectMatch "^/debian$" /debian/
20         Alias /debian/ <%= @archive_root %>/
21         Alias /_health /run/dsa-mirror-health-ftp/health
22         <Directory /run/dsa-mirror-health-ftp/>
23                 Require all granted
24         </Directory>
25
26         ErrorLog /var/log/apache2/ftp.debian.org-error.log
27         CustomLog /var/log/apache2/ftp.debian.org-access.log privacy
28
29         Use ftp-archive <%= @archive_root %>
30
31         <IfModule mod_userdir.c>
32                 UserDir disabled
33         </IfModule>
34 </VirtualHost>
35
36 # vim:set syn=apache: