From 495bf05fb81bcc8b29e065493d7dd2775bc1af90 Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 14 Jun 2017 23:14:41 +0200 Subject: [PATCH] Fix for Apple autoconfiguration (dav) --- data/conf/nginx/site.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index cda03410..05a103ca 100644 --- a/data/conf/nginx/site.conf +++ b/data/conf/nginx/site.conf @@ -37,6 +37,9 @@ server { real_ip_header X-Forwarded-For; real_ip_recursive on; + rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent; + rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent; + location ^~ /principals { return 301 /SOGo/dav; } @@ -181,6 +184,9 @@ server { real_ip_header X-Forwarded-For; real_ip_recursive on; + rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent; + rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent; + location ^~ /principals { return 301 /SOGo/dav; }