]> git.decadent.org.uk Git - dak.git/blob - config/debian/apache.conf-ftp
Also allow access to the lintian.tags file
[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   Alias /static/lintian.tags /srv/ftp-master.debian.org/dak/config/debian/lintian.tags
18
19   <Directory /srv/ftp.debian.org/web-users>
20     Require all granted
21     AllowOverride FileInfo AuthConfig Limit Indexes
22     Options MultiViews Indexes SymLinksIfOwnerMatch
23   </Directory>
24
25   <Directory /srv/ftp.debian.org/web>
26     Require all granted
27     AddCharset utf-8 .txt
28     Options MultiViews Indexes SymLinksIfOwnerMatch
29   </Directory>
30
31   <Files /srv/ftp-master.debian.org/dak/config/debian/lintian.tags>
32     Require all granted
33   </Files>
34
35   RewriteEngine On
36   RewriteRule ^/~(.+) /users/$1 [R=permanent,L]
37   RewriteRule ^/testing/(.*) https://release.debian.org/britney/$1 [R=permanent,L]
38 </VirtualHost>