diff --git a/etc/alternc/templates/apache2/autodiscover.conf b/etc/alternc/templates/apache2/autodiscover.conf index 123a09f3..a68a4120 100644 --- a/etc/alternc/templates/apache2/autodiscover.conf +++ b/etc/alternc/templates/apache2/autodiscover.conf @@ -7,6 +7,7 @@ ServerName %%fqdn%% + RewriteEngine On # Mail autoconfig RewriteRule ^/mail/mailautoconfig.xml$ /mailautoconfig_thunderbird.php [L] RewriteRule ^/mail/config-v1.1.xml$ /mailautoconfig_thunderbird.php [L] @@ -20,7 +21,8 @@ RewriteRule ^Autodiscover/Autodiscover.xml$ /mailautoconfig_outlook.php [L] RewriteRule ^Autodiscover.xml$ mailautoconfig_outlook.php [L] RewriteRule ^autodiscover.xml$ mailautoconfig_outlook.php [L] - + RewriteRule (.*) - [F] + @@ -31,6 +33,7 @@ ServerName %%fqdn%% + RewriteEngine On # Mail autoconfig RewriteRule ^/mail/mailautoconfig.xml$ /mailautoconfig_thunderbird.php [L] RewriteRule ^/mail/config-v1.1.xml$ /mailautoconfig_thunderbird.php [L] @@ -44,6 +47,7 @@ RewriteRule ^Autodiscover/Autodiscover.xml$ /mailautoconfig_outlook.php [L] RewriteRule ^Autodiscover.xml$ mailautoconfig_outlook.php [L] RewriteRule ^autodiscover.xml$ mailautoconfig_outlook.php [L] + RewriteRule (.*) - [F] SSLEngine On SSLCertificateFile %%CRT%%