No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_apache2_sites-available_autoconfig.j2 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # NOTE: We don't permanently redirect clients to the HTTPS address because some clients, like
  2. # Thunderbird, dont't follow redirections to the HTTPS URL.
  3. #
  4. # Additionally, documentation doesn't say whether the XML file should be served over either HTTP,
  5. # HTTPS or both, even though only the former is mentioned. Still, we allow clients to choose
  6. # between HTTP and HTTPS transports.
  7. <VirtualHost *:80>
  8. ServerName {{ mail_server_autoconfig_hostname }}
  9. DocumentRoot "/var/www/autoconfig"
  10. Options -Indexes
  11. HostnameLookups Off
  12. </VirtualHost>
  13. <VirtualHost *:443>
  14. ServerName {{ mail_server_autoconfig_hostname }}
  15. SSLEngine on
  16. SSLProtocol ALL -SSLv2 -SSLv3
  17. SSLHonorCipherOrder On
  18. SSLCompression off
  19. SSLUseStapling On
  20. SSLStaplingResponderTimeout 5
  21. SSLStaplingReturnResponderErrors off
  22. SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK
  23. SSLCertificateFile /etc/ssl/certs/wildcard_public_cert.crt
  24. SSLCertificateKeyFile /etc/ssl/private/wildcard_private.key
  25. SSLCACertificateFile /etc/ssl/certs/wildcard_ca.pem
  26. Header add Strict-Transport-Security "max-age=15768000; includeSubdomains"
  27. DocumentRoot "/var/www/autoconfig"
  28. Options -Indexes
  29. HostnameLookups Off
  30. </VirtualHost>