Alright, that works, thank you! 🙂 mysite.com/dav.php
now goes directly to the web interface (no /html
needed).
The contents of that root directory (/html
) are:
$ ls -a
. .. admin cal.php card.php dav.php .htaccess index.php res robots.txt
As for html/.htaccess
, its contents (default) look like this:
# Disabling cache management
# that could cause problems with DAV requests
# Useful only for Apache servers, with AllowOverride All
# (ie, .htaccess files enabled)
# Allow HTTP headers with Apache/FastCGI
# See http://code.google.com/p/sabredav/wiki/Authentication#Apache_+_(Fast)CGI
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>
<IfModule mod_expires.c>
ExpiresActive Off
</IfModule>
<IfModule mod_alias.c>
Redirect 308 /.well-known/caldav /dav.php
Redirect 308 /.well-known/carddav /dav.php
</IfModule>
If I understand correctly, it should allow mysite.com
(which now points at mysite.com/html
) to be recognized by a carddav and/or caldav client. That's not working, though it does for nextcloud, where you've modified .htaccess
to look like this:
[snip]
<IfModule mod_rewrite.c>
RewriteRule ^\.well-known/carddav https://%{SERVER_NAME}/remote.php/dav [R=301,L]
RewriteRule ^\.well-known/caldav https://%{SERVER_NAME}/remote.php/dav [R=301,L]
</IfModule>
I've tried various permutations of Redirect and Rewrite, without much luck. At the same time ~/logs/apps/baikal
is empty, so there aren't any logs for me to have a look at. (As you had suggested, above.) Do you have thoughts on what I might try next?