worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; server { listen 8080; access_log /dev/stdout; error_log /dev/stdout info; client_max_body_size 0; location / { root /share; 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_ext_methods PROPFIND OPTIONS; dav_access user:rw group:rw all:r; auth_basic "Restricted Content"; auth_basic_user_file /opt/nginx/conf/.htpasswd; } } }