Updated groupdav.htaccess to support ActiveSync and CalDAV/CardDAV

Added an commented redirect to facilitate EGroupware login in subdirectory
This commit is contained in:
Ralf Becker 2016-11-17 13:00:19 +01:00
parent d9031c4c2e
commit 497c464f7c

View File

@ -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$ # Please note:
# # - this file needs to be copyied as .htaccess to your document root
# This file can be copyied as .htaccess to your document root # to support CalDAV/CardDAV or ActiveSync synchronisation.
# to support Mac or iPhone clients to autodetec CalDAV and CardDAV # - your Apache web server needs to be setup to read .htaccess files and
# (currently Addressbook does NOT allow to specify our groupdav.php # allow use of the RewriteEngine directive (AllowOverride FileInfo).
# 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).
# - you need to replace /egroupware with your EGroupware URL path eg. /egw # - 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 RewriteEngine On
RewriteBase / RewriteBase /
RewriteRule ^.well-known/(caldav|carddav)$ /egroupware/groupdav.php/ [R] # Enable ActiveSync protocol support via eSync app
RewriteCond %{REQUEST_METHOD} ^(PROPFIND|OPTIONS)$ RewriteRule ^Microsoft-Server-ActiveSync /egroupware/activesync/index.php [L,QSA]
RewriteRule ^/$ /egroupware/groupdav.php/ [R]
# 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]
# iOS 4.3+ calendar requires that to autodetect accounts # 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]