Skip to content

Instantly share code, notes, and snippets.

@exiguus
Created October 25, 2019 19:29
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 exiguus/90d42bbbadb5887fd11f467d52887dab to your computer and use it in GitHub Desktop.
Save exiguus/90d42bbbadb5887fd11f467d52887dab to your computer and use it in GitHub Desktop.
nginx webdav config
server {
listen 127.0.0.1:8181;
server_name localhost;
root /var/www/webdav;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htaccess;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
dav_access user:r group:r;
client_body_temp_path /var/www/webdav/temp;
client_max_body_size 0;
create_full_put_path on;
location / {
error_page 400 401 402 403 404 500 501 502 503 504 @ops;
}
location @ops {
default_type text/plain;
return 403 "Ooopsy! ;)";
}
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment