首页 > 解决方案 > NGINX CalDAV:“报告/HTTP/1.1”405 166

问题描述

我有一个非常基本的 nginx 在线日历设置。可以在 Thunderbird 日志中添加事件,并且 .ics 文件位于正确的目录中。

NGINX 日志:"PUT /xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ics HTTP/1.1" 201 0

但后来我无法收到任何事件:

NGINX 日志:"REPORT / HTTP/1.1" 405 166

看起来 NGINX 不支持REPORT方法。这是事实还是有人知道解决方案?

谢谢,一切顺利,里奇

我的配置文件:

server {
            listen 80;
            listen [::]:80;
    
            root /var/www/calendar.my.tld;
    
            server_name calendar.my.tld;
    
            auth_basic "restricted";
            auth_basic_user_file /var/www/calendar.my.tld/.htpasswd;
    
            location / {
                    dav_methods     PUT DELETE MKCOL COPY MOVE;
                    dav_ext_methods   PROPFIND OPTIONS;
                    dav_access    user:rw group:rw all:rw;
    
                    autoindex     on;
            }
    }

标签: nginxwebdavcaldav

解决方案


推荐阅读