server { listen 8080; access_log /dev/stdout; error_log /dev/stdout info; client_max_body_size 0; location / { create_full_put_path on; autoindex on; autoindex_exact_size off; autoindex_localtime on; charset utf-8; dav_methods PUT DELETE MKCOL COPY MOVE; dav_access user:rw group:rw all:rw; auth_basic "Restricted"; auth_basic_user_file /etc/nginx/htpasswd; root /share/; } }