diff --git a/config/apache-davical.conf b/config/apache-davical.conf index 9aaa95a7..b7b7acbd 100644 --- a/config/apache-davical.conf +++ b/config/apache-davical.conf @@ -30,6 +30,9 @@ Alias /davical /usr/share/davical/htdocs RewriteRule ^/\.well-known/(.*)$ /davical/caldav.php/.well-known/$1 [NC,L] # Optionally: redirect /principals/users/ as well RewriteRule ^/principals/users/(.*)$ /davical/caldav.php/$1 [NC,L] + RewriteRule ^/principals/resources/(.*)$ /davical/caldav.php/$1 [NC,L] + RewriteRule ^/calendars/__uids__/(.*)$ /davical/caldav.php/$1 [NC,L] + RewriteRule ^/addressbooks/__uids__/(.*)$ /davical/caldav.php/$1 [NC,L] # Optionally: Put DAViCal in the root # NOTE: this will break other applications that rely on mod_rewrite! @@ -43,5 +46,5 @@ Alias /davical /usr/share/davical/htdocs #RewriteCond %{REQUEST_URI} !\.(php|html|css|js|png|gif|jpg|ico) # # Everything else gets rewritten to /caldav.php/... - #RewriteRule ^(.*)$ /caldav.php$1 [NC,L] + #RewriteRule ^(.*)$ /davical/caldav.php$1 [NC,L] diff --git a/testing/README.regression_tests b/testing/README.regression_tests index 4600dc64..a9aae3e4 100644 --- a/testing/README.regression_tests +++ b/testing/README.regression_tests @@ -39,6 +39,11 @@ to /etc/hosts and a VirtualHost to Apache with RewriteEngine On # Redirect /.well-known URLs RewriteRule ^/\.well-known/(.*)$ /caldav.php/.well-known/$1 [NC,L] + # and other special URLs + RewriteRule ^/principals/users/(.*)$ /caldav.php/$1 [NC,L] + RewriteRule ^/principals/resources/(.*)$ /caldav.php/$1 [NC,L] + RewriteRule ^/calendars/__uids__/(.*)$ /caldav.php/$1 [NC,L] + RewriteRule ^/addressbooks/__uids__/(.*)$ /caldav.php/$1 [NC,L] # let caldav.php handle "anything else" RewriteCond %{REQUEST_URI} !^/$ RewriteCond %{REQUEST_URI} !\.(php|css|png|gif|js|jpg|ico) diff --git a/testing/tests/regression-suite/0552-iPhone-PROPFIND.result b/testing/tests/regression-suite/0552-iPhone-PROPFIND.result index 1e627e86..12e3dd15 100644 --- a/testing/tests/regression-suite/0552-iPhone-PROPFIND.result +++ b/testing/tests/regression-suite/0552-iPhone-PROPFIND.result @@ -2,8 +2,8 @@ HTTP/1.1 207 Multi-Status Date: Dow, 01 Jan 2000 00:00:00 GMT DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy -ETag: "9c0097968135b1bb539cee7121158c9c" -Content-Length: 995 +ETag: "e9fc2a56ba9302e5bd7406ee47a4d69a" +Content-Length: 1025 Content-Type: text/xml; charset="utf-8" @@ -13,20 +13,20 @@ Content-Type: text/xml; charset="utf-8" - /caldav.php/user1/ + /principals/users/user1/ mailto:user1@example.net - /caldav.php/user1/ + /principals/users/user1/ - /caldav.php/user1/.in/ + /principals/users/user1/.in/ - /caldav.php/user1/.out/ + /principals/users/user1/.out/ - /caldav.php/user1/.drop/ + /principals/users/user1/.drop/ User 1