apache.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # push changes with: sudo apache2-vhost-update security-master.debian.org
  2. BrowserMatch ExtractorPro spammer
  3. BrowserMatch EmailSiphon spammer
  4. <Macro SecurityMasterConfiguration>
  5. ServerName security-master.debian.org
  6. ServerAdmin team@security.debian.org
  7. DocumentRoot /srv/security-master.debian.org/htdocs-security-master
  8. <Directory /srv/security-master.debian.org/htdocs-security-master>
  9. Require all granted
  10. </Directory>
  11. ErrorLog /var/log/apache2/security-master.debian.org-error.log
  12. CustomLog /var/log/apache2/security-master.debian.org-access.log combined
  13. LogLevel warn
  14. RewriteEngine on
  15. RewriteRule ^/$ https://www.debian.org/security/
  16. </Macro>
  17. <VirtualHost *:80>
  18. Use SecurityMasterConfiguration
  19. # TODO implement http to https redirection
  20. </VirtualHost>
  21. <VirtualHost *:443>
  22. Use SecurityMasterConfiguration
  23. Use common-debian-service-ssl security-master.debian.org
  24. Use common-ssl-HSTS
  25. Use http-pkp-security-master.debian.org
  26. Alias /debian-security /srv/security.debian.org/archive/debian-security/
  27. Alias /debian-security-buildd /srv/security-master.debian.org/buildd/debian-security-buildd/
  28. <LocationMatch "^/(debian-security|debian-security-buildd)/">
  29. Use DebianBuilddHostList
  30. # ftp-master.d.o; for code-signing service
  31. Require ip 192.91.235.231
  32. # whitelisted for Joerg Jaspert
  33. Require ip 78.46.40.15
  34. Require ip 2001:4dd0:ff00:df::2
  35. Require ip 213.146.108.162
  36. Require ip 2a01:198:5d0:0:21c:c0ff:fead:e3a3
  37. # Proxy node of ci.debian.net for autopkgtesting the embargoed queue
  38. Require ip 52.34.117.196
  39. # AuthName "security.debian.org"
  40. # AuthType Basic
  41. # AuthUserFile /srv/security-master.debian.org/apache.htpasswd
  42. # Require valid-user
  43. </LocationMatch>
  44. </VirtualHost>