小编sur*_*avi的帖子

nginx webdav无法打开收藏夹

我在freebsd系统上使用以下配置参数构建了nginx:

./configure ... –with-http_dav_module

现在这是我的配置文件:

user www www;
worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    # reserve 1MB under the name 'proxied' to track uploads
    upload_progress proxied 1m;

    sendfile        on;
    #tcp_nopush     on;
    client_max_body_size 500m;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;
    #upload_store /var/tmp/firmware;
    client_body_temp_path /var/tmp/firmware;


    server {
      server_name localhost;
      listen 8080;

      auth_basic "Restricted";
      auth_basic_user_file /root/.htpasswdfile;

      create_full_put_path on;
      client_max_body_size 50m;
      dav_access user:rw group:r all:r;
      dav_methods PUT DELETE MKCOL COPY MOVE;
      autoindex on;
      root /root;

      location / …
Run Code Online (Sandbox Code Playgroud)

webdav nginx

6
推荐指数
1
解决办法
7560
查看次数

标签 统计

nginx ×1

webdav ×1