-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated groupdav.htaccess to support ActiveSync and CalDAV/CardDAV
Added an commented redirect to facilitate EGroupware login in subdirectory
- Loading branch information
1 parent
d9031c4
commit 497c464
Showing
1 changed file
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
# EGroupware CalDav or CardDAV support for Apple apps (OS X and iOS) | ||
# EGroupware CalDav/CardDAV and ActiveSync support via .htaccess | ||
# | ||
# $Id$ | ||
# | ||
# This file can be copyied as .htaccess to your document root | ||
# to support Mac or iPhone clients to autodetec CalDAV and CardDAV | ||
# (currently Addressbook does NOT allow to specify our groupdav.php | ||
# URL manually). | ||
# | ||
# Please note: | ||
# - your Apache web server needs to be setup to read .htaccess files and | ||
# allow use of the RewriteEngine directive (AllowOverride FileInfo). | ||
# Please note: | ||
# - this file needs to be copyied as .htaccess to your document root | ||
# to support CalDAV/CardDAV or ActiveSync synchronisation. | ||
# - your Apache web server needs to be setup to read .htaccess files and | ||
# allow use of the RewriteEngine directive (AllowOverride FileInfo). | ||
# - you need to replace /egroupware with your EGroupware URL path eg. /egw | ||
# - commented out last directiv can be used to redirect from just the domain to | ||
# /egroupware/ to facilitate EGroupware login in default subdirectory. | ||
|
||
RewriteEngine On | ||
RewriteBase / | ||
|
||
# Enable ActiveSync protocol support via eSync app | ||
RewriteRule ^Microsoft-Server-ActiveSync /egroupware/activesync/index.php [L,QSA] | ||
|
||
# CalDAV/CardDAV autodetection | ||
RewriteRule ^.well-known/(caldav|carddav)$ /egroupware/groupdav.php/ [R] | ||
# redirect PROPFIND or OPTIONS request on root to EGroupware CalDAV/CardDAV handler | ||
RewriteCond %{REQUEST_METHOD} ^(PROPFIND|OPTIONS)$ | ||
RewriteRule ^/$ /egroupware/groupdav.php/ [R] | ||
|
||
RewriteRule ^$ /egroupware/groupdav.php/ [R] | ||
# iOS 4.3+ calendar requires that to autodetect accounts | ||
RewriteRule ^(/principals/users/.*)$ /egroupware/groupdav.php$1 [R] | ||
RewriteRule ^(principals/users/.*)$ /egroupware/groupdav.php/$1 [R] | ||
|
||
# redirect root to EGroupware under /egroupware | ||
#RewriteRule ^$ /egroupware/ [R] |