简体   繁体   English

贝加尔湖/ calDAV 501错误

[英]501 error with baikal / calDAV

I found some calDAV / sabre / baikal related questions and answers here at stackoverflow, so this might be the appropriate place for my question. 我在stackoverflow上找到了一些与calDAV / saber / baikal相关的问题和答案,因此这可能是我提出问题的合适地点。

I set up a baikal-flat server at my domain, hosted at one.com. 我在我的域中设置了一个baikal-flat服务器,该服务器托管在one.com上。

My .htaccess lives at /baikal and looks like this 我的.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]

Rewriting to ssl works now, I get https connections to baikal's web interface. 现在可以重写为ssl了,我获得了与baikal的Web界面的https连接。 Accessing it via korganizer, thunderbird and android fails - I tried any thinkable address combination. 通过korganizer,thunderbird和android访问它失败-我尝试了任何可考虑的地址组合。 My first attempt was with https://.com/baikal/cal.php/calendars//default/ 我的第一次尝试是使用https://.com/baikal/cal.php/calendars//default/

I get a 501 error. 我收到501错误。

When I do 当我做

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

for debugging, this is the result: 对于调试,结果如下:

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

I found google hits on that messages, but they seem to be iphone-related. 我在这些邮件上发现了Google匹配,但它们似乎与iPhone相关。

<username>, <mydomain> and <password>

is replaced by the real items without brackets in the real files. 被真实文件中没有括号的真实项目替换。 (-; Could someone give me a hint? (-;有人可以给我提示吗?

Greetings, Wolf 狼的问候

This error message is expected. 该错误消息是预期的。 GET requests don't work by default on collections. 默认情况下, GET请求在集合上不起作用。

Try a PROPFIND request if you want to see a real response coming back. 如果您想看到真实的响应,请尝试一个PROPFIND请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM