Skip to content

Instantly share code, notes, and snippets.

@zeptometer
Created March 22, 2016 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeptometer/73edf50ec6eed6f84e9c to your computer and use it in GitHub Desktop.
Save zeptometer/73edf50ec6eed6f84e9c to your computer and use it in GitHub Desktop.
Webdav Settings on Nginx
server {
listen 80;
server_name dav.pohe;
location / {
root /var/www/webdav;
auth_basic "pohe!";
auth_basic_user_file /etc/nginx/conf.d/.htpasswd;
client_max_body_size 100m;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
client_body_temp_path /tmp/nginx/webdav;
create_full_put_path on;
dav_access group:rw all:r;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
access_log /var/log/nginx/webdav.access.log;
error_log /var/log/nginx/webdav.error.log;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment