From 0b1469c15d2dcc13a7ffdbb9fda5bdae487fa3de Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Sat, 5 Dec 2015 13:19:44 +0800 Subject: [PATCH] Update en_US/upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md: redirects url of /.well-known/carddav request to SOGo. --- .../upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md | 48 +++++++++++++++++-- html/upgrade.iredmail.0.9.2-0.9.3.html | 39 +++++++++++++-- 2 files changed, 81 insertions(+), 6 deletions(-) diff --git a/en_US/upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md b/en_US/upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md index 563eae93..27f84040 100644 --- a/en_US/upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md +++ b/en_US/upgrade/0-upgrade.iredmail.0.9.2-0.9.3.md @@ -328,12 +328,18 @@ add_header Strict-Transport-Security "max-age=15768000; includeSubdomains"; ### SOGo: Fix improper settings in Apache/Nginx config file -iRedMail-0.9.2 has improper settings in Apache/Nginx config files, when you -try to view attachment in email, it will redirect the URL to -`https://127.0.0.1/...`. +iRedMail-0.9.2 has improper settings in Apache/Nginx config files: + +* when you try to view attachment in email, it will redirect the URL to + `https://127.0.0.1/...`. +* iOS mobile devices will try to access web url + `https://.../.well-known/carddav`, but it's not defined in Apache/Nginx + config files.

Apache

+
1: Comment out incorrect settings
+ For Apache: Please make sure below settings are commented out in Apache config file, then restart Apache service. @@ -348,8 +354,27 @@ config file, then restart Apache service. #RequestHeader set "x-webobjects-server-url" "https://yourhostname" ``` +
2: Redirect `/.well-known/carddav` access to SOGo
+ +Find below line in `SOGo.conf`: + +``` + RewriteRule ^/.well-known/caldav/?$ /SOGo/dav [R=301] +``` + +Add a new line right after above line: + +``` + RewriteRule ^/.well-known/caldav/?$ /SOGo/dav [R=301] + RewriteRule ^/.well-known/carddav/?$ /SOGo/dav [R=301] +``` + +Restarting Apache service is required. +

Nginx

+
1: Comment out incorrect settings
+ For Nginx: Please make sure below settings are commented out in Nginx config file, then restart or reload Nginx service. @@ -362,6 +387,23 @@ file, then restart or reload Nginx service. #proxy_set_header x-webobjects-server-url $scheme://$host; ``` +
2: Redirect `/.well-known/carddav` access to SOGo
+ +Find below line in `default.conf`: + +``` +rewrite ^/.well-known/caldav /SOGo/dav permanent; +``` + +Add a new line right after above line: + +``` +rewrite ^/.well-known/caldav /SOGo/dav permanent; +rewrite ^/.well-known/carddav /SOGo/dav permanent; +``` + +Restarting Nginx service is required. + ### SOGo: The Dovecot Master User used by SOGo doesn't work due to incorrect username. Note: you can skip this step if you don't run SOGo groupware, and iRedMail diff --git a/html/upgrade.iredmail.0.9.2-0.9.3.html b/html/upgrade.iredmail.0.9.2-0.9.3.html index 23078c1d..47333e24 100644 --- a/html/upgrade.iredmail.0.9.2-0.9.3.html +++ b/html/upgrade.iredmail.0.9.2-0.9.3.html @@ -355,11 +355,18 @@ add_header Strict-Transport-Security "max-age=15768000; includeSubdomains&q

SOGo: Fix improper settings in Apache/Nginx config file

-

iRedMail-0.9.2 has improper settings in Apache/Nginx config files, when you -try to view attachment in email, it will redirect the URL to -https://127.0.0.1/....

+

iRedMail-0.9.2 has improper settings in Apache/Nginx config files:

+

Apache

+
1: Comment out incorrect settings
+

For Apache: Please make sure below settings are commented out in Apache config file, then restart Apache service.