浏览代码

Fix for Apple autoconfiguration (dav)

andryyy 8 年之前
父节点
当前提交
495bf05fb8
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      data/conf/nginx/site.conf

+ 6 - 0
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;
   }