]> git.decadent.org.uk Git - dak.git/blob - config/debian/apache.conf-ftp
Use more https://
[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     Order allow,deny
20     Allow from All
21     AllowOverride FileInfo AuthConfig Limit Indexes
22     Options MultiViews Indexes SymLinksIfOwnerMatch
23   </Directory>
24
25   <Directory /srv/ftp.debian.org/web>
26     AddCharset utf-8 .txt
27   </Directory>
28
29   RewriteEngine On
30   RewriteRule ^/~(.+) /users/$1 [R=permanent,L]
31 </VirtualHost>