apache.conf-ftp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. Use common-debian-service-https-redirect * ftp-master.debian.org
  2. <VirtualHost *:443>
  3. ServerName ftp-master.debian.org
  4. DocumentRoot /srv/ftp.debian.org/web
  5. CustomLog /var/log/apache2/ftp-master-access.log privacy
  6. ErrorLog /var/log/apache2/ftp-master-error.log
  7. Use common-debian-service-ssl ftp-master.debian.org
  8. Use common-ssl-HSTS
  9. Redirect permanent /proposed-updates.html https://release.debian.org/proposed-updates/stable.html
  10. Redirect permanent /oldstable-proposed-updates.html https://release.debian.org/proposed-updates/oldstable.html
  11. Redirect permanent /testing/hints/transitions.yaml https://ftp-master.debian.org/transitions.yaml
  12. Alias /users/ /srv/ftp.debian.org/web-users/
  13. <Directory /srv/ftp.debian.org/web-users>
  14. Require all granted
  15. AllowOverride FileInfo AuthConfig Limit Indexes
  16. Options MultiViews Indexes SymLinksIfOwnerMatch
  17. </Directory>
  18. <Directory /srv/ftp.debian.org/web>
  19. Require all granted
  20. AddCharset utf-8 .txt
  21. Options MultiViews Indexes SymLinksIfOwnerMatch
  22. </Directory>
  23. RewriteEngine On
  24. RewriteRule ^/~(.+) /users/$1 [R=permanent,L]
  25. </VirtualHost>