From 0b1469c15d2dcc13a7ffdbb9fda5bdae487fa3de Mon Sep 17 00:00:00 2001
From: Zhang Huangbin 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
- iRedMail-0.9.2 has improper settings in Apache/Nginx config files: For Apache: Please make sure below settings are commented out in Apache
config file, then restart Apache service.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
-https://127.0.0.1/...
.
+
https://127.0.0.1/...
.https://.../.well-known/carddav
, but it's not defined in Apache/Nginx
+ config files.Apache
+1: Comment out incorrect settings
+
@@ -373,8 +380,22 @@ config file, then restart Apache service.
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.
For Nginx: Please make sure below settings are commented out in Nginx config file, then restart or reload Nginx service.
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.
Note: you can skip this step if you don't run SOGo groupware, and iRedMail doesn't install SOGo on FreeBSD due to missing required ports in official ports