From a182e0b9cc2322c1fde58f319754c2f2c85ab8a9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 2 Aug 2011 16:37:22 +0000 Subject: [PATCH] * CalDAV/CardDAV redirect for iOS 4.3.1+ to autodetect accounts --- doc/rpm-build/apache.conf | 3 +++ groupdav.htaccess | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doc/rpm-build/apache.conf b/doc/rpm-build/apache.conf index 0b2112855b..f99056dac5 100644 --- a/doc/rpm-build/apache.conf +++ b/doc/rpm-build/apache.conf @@ -9,6 +9,9 @@ Alias /egroupware /usr/share/egroupware # Enable ActiveSync protocol support via eSync app Alias /Microsoft-Server-ActiveSync /usr/share/egroupware/activesync/index.php +# iOS 4.3+ calendar requires that to autodetect accounts +RedirectMatch ^(/principals/users/.*)$ /egroupware/groupdav.php$1 + Options FollowSymLinks ExecCGI AllowOverride None diff --git a/groupdav.htaccess b/groupdav.htaccess index cbec4e6e08..b68579703b 100755 --- a/groupdav.htaccess +++ b/groupdav.htaccess @@ -40,3 +40,6 @@ RewriteBase / RewriteRule ^.well-known/(caldav|carddav)$ /egroupware/groupdav.php/ [R] RewriteCond %{REQUEST_METHOD} ^(PROPFIND|OPTIONS)$ RewriteRule ^/$ /egroupware/groupdav.php/ [R] + +# iOS 4.3+ calendar requires that to autodetect accounts +RewriteRule ^(/principals/users/.*)$ /egroupware/groupdav.php$1 [R]