diff options
author | Bryan Newbold <bnewbold@archive.org> | 2019-01-16 13:24:08 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2019-01-16 13:24:30 -0800 |
commit | 427427ec3bcb58eadaa9c62477f70a5f3c6f39e0 (patch) | |
tree | cf3e6030e2cfd158bf118965ffd79b44bba40ba9 /roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2 | |
parent | 619285adf88d3ea78a1501108888d0d2d23d0a06 (diff) | |
download | infra-427427ec3bcb58eadaa9c62477f70a5f3c6f39e0.tar.gz infra-427427ec3bcb58eadaa9c62477f70a5f3c6f39e0.zip |
mailserver role
Diffstat (limited to 'roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2')
-rw-r--r-- | roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2 b/roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2 new file mode 100644 index 0000000..1c3a07c --- /dev/null +++ b/roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2 @@ -0,0 +1,26 @@ +# 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 + + DocumentRoot "/var/www/autoconfig" + Options -Indexes + + HostnameLookups Off +</VirtualHost> |