Browse Source

Fix for Apple autoconfiguration (dav)

andryyy 8 years ago
parent
commit
495bf05fb8
1 changed files with 6 additions and 0 deletions
  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_header X-Forwarded-For;
   real_ip_recursive on;
   real_ip_recursive on;
 
 
+  rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent;
+  rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent;
+
   location ^~ /principals {
   location ^~ /principals {
 	return 301 /SOGo/dav;
 	return 301 /SOGo/dav;
   }
   }
@@ -181,6 +184,9 @@ server {
   real_ip_header X-Forwarded-For;
   real_ip_header X-Forwarded-For;
   real_ip_recursive on;
   real_ip_recursive on;
 
 
+  rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent;
+  rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent;
+
   location ^~ /principals {
   location ^~ /principals {
     return 301 /SOGo/dav;
     return 301 /SOGo/dav;
   }
   }