]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/apache.conf-ftp
Use an alias for lintian.tags
[dak.git] / config / debian / apache.conf-ftp
index 52a85528a8d67d84130973a6623e709e75ccdf47..51027e2842aad29a8b1240b50137293f6a56d448 100644 (file)
@@ -1,22 +1,34 @@
-  # virtualhost is defined in the file including this file.
+Use common-debian-service-https-redirect * ftp-master.debian.org
 
+<VirtualHost *:443>
   ServerName ftp-master.debian.org
   DocumentRoot /srv/ftp.debian.org/web
-  Redirect permanent /proposed-updates.html http://release.debian.org/proposed-updates/stable.html
-  Redirect permanent /oldstable-proposed-updates.html http://release.debian.org/proposed-updates/oldstable.html
-  Redirect permanent /testing/hints/transitions.yaml http://ftp-master.debian.org/transitions.yaml
 
-  CustomLog               /var/log/apache2/ftp-master-access.log combined
+  CustomLog               /var/log/apache2/ftp-master-access.log privacy
   ErrorLog                /var/log/apache2/ftp-master-error.log
 
+  Use common-debian-service-ssl ftp-master.debian.org
+  Use common-ssl-HSTS
+
+  Redirect permanent /proposed-updates.html https://release.debian.org/proposed-updates/stable.html
+  Redirect permanent /oldstable-proposed-updates.html https://release.debian.org/proposed-updates/oldstable.html
+  Redirect permanent /testing/hints/transitions.yaml https://ftp-master.debian.org/transitions.yaml
   Alias /users/ /srv/ftp.debian.org/web-users/
+  Alias /static/lintian.tags /srv/ftp-master.debian.org/dak/config/debian/lintian.tags
 
   <Directory /srv/ftp.debian.org/web-users>
-    Order allow,deny
-    Allow from All
+    Require all granted
     AllowOverride FileInfo AuthConfig Limit Indexes
     Options MultiViews Indexes SymLinksIfOwnerMatch
   </Directory>
 
+  <Directory /srv/ftp.debian.org/web>
+    Require all granted
+    AddCharset utf-8 .txt
+    Options MultiViews Indexes SymLinksIfOwnerMatch
+  </Directory>
+
   RewriteEngine On
   RewriteRule ^/~(.+) /users/$1 [R=permanent,L]
+  RewriteRule ^/testing/(.*) https://release.debian.org/britney/$1 [R=permanent,L]
+</VirtualHost>