在NextCloud中上传文件时出现错误405

我具有仅IPv6 VPS,并且已在其上安装NextCloud版本17。我正在通过Cloudflare访问它(因为我的ISP仅是IPv4),即,我已经定义了AAAA DNS条目,该条目指向例如。 https://example.com。 操作系统是Debian,Web服务器是nginx,数据库是maria db。

问题是尝试上传文件时浏览器控制台出现405错误。

PUT https://example.com/index.php/apps/files/ 405 jquery.js:8630

是由于Cloudflare还是其他权限问题引起的?我的数据文件夹在www目录之外,并且由www-data拥有。我的根文件夹var/www/example也归www-data拥有

我的nginx conf文件如下:

server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/example/;
        index portal.php index.php index.html index.htm;

        server_name example.com;

        location / {
                try_files $uri $uri/ /index.php?$args;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
                fastcgi_param HTTPS on;
        }
}

如何解决此问题?

xaut2009 回答:在NextCloud中上传文件时出现错误405

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2865483.html

大家都在问