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> <h5>2: Redirect /.well-known/carddav access to SOGo</h5>
Find below line in `default.conf`: 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;
```
Add a new line right after above line:
``` ```
rewrite ^/.well-known/caldav /SOGo/dav permanent; 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> <h5>2: Redirect /.well-known/carddav access to SOGo</h5>
<p>Find below line in <code>default.conf</code>:</p> <p>iRedMail doesn't have <code>/.well-known</code> redirection in Nginx by default, so
<pre><code>rewrite ^/.well-known/caldav /SOGo/dav permanent; please add lines below in the <code>server { listen 443; ...}</code> block,
</code></pre> in file <code>default.conf</code>:</p>
<p>Add a new line right after above line:</p>
<pre><code>rewrite ^/.well-known/caldav /SOGo/dav permanent; <pre><code>rewrite ^/.well-known/caldav /SOGo/dav permanent;
rewrite ^/.well-known/carddav /SOGo/dav permanent; rewrite ^/.well-known/carddav /SOGo/dav permanent;
</code></pre> </code></pre>