瀏覽代碼

Force https on mail autoconfig apache vhost.

John Giannelos 7 年之前
父節點
當前提交
351addffd7
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增12 行删除
  1. 1
    12
      roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2

+ 1
- 12
roles/mailserver/templates/etc_apache2_sites-available_autoconfig.j2 查看文件

@@ -1,18 +1,7 @@
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
-
8 1
 <VirtualHost *:80>
9
-
10 2
     ServerName {{ mail_server_autoconfig_hostname }}
11 3
 
12
-    DocumentRoot            "/var/www/autoconfig"
13
-    Options                 -Indexes
14
-
15
-    HostnameLookups         Off
4
+    Redirect permanent / https://{{ mail_server_autoconfig_hostname }}/
16 5
 </VirtualHost>
17 6
 
18 7
 <VirtualHost *:443>

Loading…
取消
儲存