Add both rewrite rules for '/.well-known/' in Nginx config file.

This commit is contained in:
Zhang Huangbin 2015-12-15 09:58:19 +08:00
parent 7cc33d6246
commit dba248f0b9
2 changed files with 6 additions and 12 deletions

View File

@ -385,13 +385,9 @@ file, then restart or reload Nginx service.
<h5>2: Redirect /.well-known/carddav access to SOGo</h5>
Find below line in `default.conf`:
```
rewrite ^/.well-known/caldav /SOGo/dav permanent;
```
Add a new line right after above line:
iRedMail doesn't have `/.well-known` redirection in Nginx by default, so
please add lines below in the `server { listen 443; ...}` block,
in file `default.conf`:
```
rewrite ^/.well-known/caldav /SOGo/dav permanent;

View File

@ -405,11 +405,9 @@ file, then restart or reload Nginx service.</p>
<h5>2: Redirect /.well-known/carddav access to SOGo</h5>
<p>Find below line in <code>default.conf</code>:</p>
<pre><code>rewrite ^/.well-known/caldav /SOGo/dav permanent;
</code></pre>
<p>Add a new line right after above line:</p>
<p>iRedMail doesn't have <code>/.well-known</code> redirection in Nginx by default, so
please add lines below in the <code>server { listen 443; ...}</code> block,
in file <code>default.conf</code>:</p>
<pre><code>rewrite ^/.well-known/caldav /SOGo/dav permanent;
rewrite ^/.well-known/carddav /SOGo/dav permanent;
</code></pre>