1234567891011121314151617181920212223242526272829303132333435363738 |
- # NOTE: We don't permanently redirect clients to the HTTPS address because some clients, like
- # Thunderbird, dont't follow redirections to the HTTPS URL.
- #
- # Additionally, documentation doesn't say whether the XML file should be served over either HTTP,
- # HTTPS or both, even though only the former is mentioned. Still, we allow clients to choose
- # between HTTP and HTTPS transports.
-
- <VirtualHost *:80>
-
- ServerName {{ mail_server_autoconfig_hostname }}
-
- DocumentRoot "/var/www/autoconfig"
- Options -Indexes
-
- HostnameLookups Off
- </VirtualHost>
-
- <VirtualHost *:443>
- ServerName {{ mail_server_autoconfig_hostname }}
-
- SSLEngine on
- SSLProtocol ALL -SSLv2 -SSLv3
- SSLHonorCipherOrder On
- SSLCompression off
- SSLUseStapling On
- SSLStaplingResponderTimeout 5
- SSLStaplingReturnResponderErrors off
- 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
- SSLCertificateFile /etc/ssl/certs/wildcard_public_cert.crt
- SSLCertificateKeyFile /etc/ssl/private/wildcard_private.key
- SSLCACertificateFile /etc/ssl/certs/wildcard_ca.pem
- Header add Strict-Transport-Security "max-age=15768000; includeSubdomains"
-
- DocumentRoot "/var/www/autoconfig"
- Options -Indexes
-
- HostnameLookups Off
- </VirtualHost>
|