网站配置webdav的时候出错,你们默认的openresty不支持nginx-dav-ext-module吗

新建了个网站想配置webdav,dav_ext_methods PROPFIND OPTIONS LOCK UNLOCK;,配置文件一加上这段就报错无法保存,不加又405 Not Allowed,这个该怎么解决呢?

服务内部错误: stderr: 2024/04/29 10:04:18 [emerg] 44#44: unknown directive “dav_ext_methods” in /usr/local/openresty/nginx/conf/conf.d/webdav.conf:42 nginx: [emerg] unknown directive “dav_ext_methods” in /usr/local/openresty/nginx/conf/conf.d/webdav.conf:42 nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed

dav_ext … 配置异常,不能正确被 OpenResty 识别。

参考一下 webdav 官网是否有提供 Nginx 相关的配置。

我是觉得问题出在openresty没有把nginx-dav-ext-module编译进去,openresty在1panel上是不是不能自己修改参数重新编译?