]> git.decadent.org.uk Git - dak.git/blob - config/debian/apache.conf-ftp
Merge remote-tracking branch 'nthykier/auto-decruft' into merge
[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   </Directory>
28
29   RewriteEngine On
30   RewriteRule ^/~(.+) /users/$1 [R=permanent,L]
31 </VirtualHost>