]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/apache.conf-ftp
Add the web-users dir and a rewriterule for it
[dak.git] / config / debian / apache.conf-ftp
index fa0196155b6df1a9357a5cbf54f1056b80bddde2..52a85528a8d67d84130973a6623e709e75ccdf47 100644 (file)
@@ -5,3 +5,18 @@
   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
+  ErrorLog                /var/log/apache2/ftp-master-error.log
+
+  Alias /users/ /srv/ftp.debian.org/web-users/
+
+  <Directory /srv/ftp.debian.org/web-users>
+    Order allow,deny
+    Allow from All
+    AllowOverride FileInfo AuthConfig Limit Indexes
+    Options MultiViews Indexes SymLinksIfOwnerMatch
+  </Directory>
+
+  RewriteEngine On
+  RewriteRule ^/~(.+) /users/$1 [R=permanent,L]