0

我在 stackoverflow 上找到了一些与 calDAV / saber / baikal 相关的问题和答案,所以这可能是我的问题的合适位置。

我在我的域中设置了一个贝加尔湖平台服务器,托管在 one.com 上。

我的 .htaccess 住在 /baikal,看起来像这样

# 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>

RewriteEngine On 
RewriteCond %{HTTPS} !on 
RewriteCond %{REQUEST_URI} baikal
RewriteRule ^(.*)$ https://www.<mydomain>.com/baikal/$1 [R,L]

重写为 ssl 现在可以工作了,我得到了到 baikal 网络界面的 https 连接。通过 korganizer、thunderbird 和 android 访问它失败 - 我尝试了任何可以想到的地址组合。我的第一次尝试是使用 https://.com/baikal/cal.php/calendars//default/

我收到 501 错误。

当我做

curl -so - --digest --user <username>:<password> https://<mydomain>.com/baikal/cal.php/calendars/<username>/default

对于调试,结果如下:

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotImplemented</s:exception>
<s:message>GET is only implemented on File objects</s:message>
<s:sabredav-version>1.8.7</s:sabredav-version>
</d:error>

我发现谷歌点击了这些消息,但它们似乎与 iPhone 相关。

<username>, <mydomain> and <password>

被真实文件中不带括号的真实项目替换。(-;有人可以给我一个提示吗?

问候,狼

4

1 回答 1

0

此错误消息是预期的。GET默认情况下,请求不适用于集合。

PROPFIND如果您想看到真正的回复,请尝试请求。

于 2014-10-16T17:03:04.753 回答