]> git.decadent.org.uk Git - dak.git/blob - config/debian/apache.conf-ftp
37322454594357bc7fba0746a67d4c7775de2f57
[dak.git] / config / debian / apache.conf-ftp
1 Use common-debian-service-https-redirect * ftp-master.debian.org
2
3 <VirtualHost *:443>
4   ServerName ftp-master.debian.org
5   DocumentRoot /srv/ftp.debian.org/web
6
7   CustomLog               /var/log/apache2/ftp-master-access.log privacy
8   ErrorLog                /var/log/apache2/ftp-master-error.log
9
10   Use common-debian-service-ssl ftp-master.debian.org
11   Use common-ssl-HSTS
12
13   Redirect permanent /proposed-updates.html https://release.debian.org/proposed-updates/stable.html
14   Redirect permanent /oldstable-proposed-updates.html https://release.debian.org/proposed-updates/oldstable.html
15   Redirect permanent /testing/hints/transitions.yaml https://ftp-master.debian.org/transitions.yaml
16   Alias /users/ /srv/ftp.debian.org/web-users/
17
18   <Directory /srv/ftp.debian.org/web-users>
19     Require all granted
20     AllowOverride FileInfo AuthConfig Limit Indexes
21     Options MultiViews Indexes SymLinksIfOwnerMatch
22   </Directory>
23
24   <Directory /srv/ftp.debian.org/web>
25     Require all granted
26     AddCharset utf-8 .txt
27     Options MultiViews Indexes SymLinksIfOwnerMatch
28   </Directory>
29
30   RewriteEngine On
31   RewriteRule ^/~(.+) /users/$1 [R=permanent,L]
32   RewriteRule ^/testing/(.*) https://release.debian.org/britney/$1 [R=permanent,L]
33 </VirtualHost>