2847 shaares
5 private links
5 private links
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
[#limit_except](https:///./add-tag/limit_except) GET PROPFIND OPTIONS{DavLockDB "/var/www/html/webdav/DavLock" is a lockfile used by Apache for when our server will receive LOCK or UNLOCK requests to handle write-concurrency for example.
server {
listen 80;
listen [::]:80;
root /var/dav/webdav_root;
# 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;
}