Skip to content

Instantly share code, notes, and snippets.

@mlouielu
Forked from pawl/webdav.conf
Created February 10, 2021 02:53
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 mlouielu/a0f0a21f2548f12d35c38968db7e0375 to your computer and use it in GitHub Desktop.
Save mlouielu/a0f0a21f2548f12d35c38968db7e0375 to your computer and use it in GitHub Desktop.
Installing nginx webdav server on ubuntu 20.04
server {
listen 80;
listen [::]:80;
root /var/dav/data;
# dav allowed method
dav_methods PUT DELETE MKCOL COPY MOVE;
# Allow current scope perform specified DAV method
dav_ext_methods PROPFIND OPTIONS;
# In this folder, newly created folder or file is to have specified permission. If n>
dav_access all:rw;
# Temporary folder
client_body_temp_path /var/dav/tmp;
# MAX size of uploaded file, 0 mean unlimited
client_max_body_size 0;
# Allow autocreate folder here if necessary
create_full_put_path on;
# Autoindex
autoindex on;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment