34 lines
770 B
Plaintext
34 lines
770 B
Plaintext
|
server {
|
||
|
listen 80 default_server;
|
||
|
server_name _;
|
||
|
|
||
|
root /var/www/webdav;
|
||
|
autoindex on;
|
||
|
|
||
|
location /public {
|
||
|
dav_methods PUT DELETE MKCOL COPY MOVE;
|
||
|
dav_ext_methods PROPFIND OPTIONS;
|
||
|
dav_access user:rw group:rw;
|
||
|
|
||
|
create_full_put_path on;
|
||
|
|
||
|
error_log /dev/stdout;
|
||
|
access_log /dev/stdout;
|
||
|
}
|
||
|
|
||
|
location /restricted {
|
||
|
auth_basic "Restricted";
|
||
|
auth_basic_user_file /etc/nginx/webdav_credentials;
|
||
|
|
||
|
dav_methods PUT DELETE MKCOL COPY MOVE;
|
||
|
dav_ext_methods PROPFIND OPTIONS;
|
||
|
dav_access user:rw group:rw;
|
||
|
|
||
|
create_full_put_path on;
|
||
|
|
||
|
error_log /dev/stdout;
|
||
|
access_log /dev/stdout;
|
||
|
}
|
||
|
|
||
|
}
|