Created
October 25, 2019 19:29
-
-
Save exiguus/90d42bbbadb5887fd11f467d52887dab to your computer and use it in GitHub Desktop.
nginx webdav config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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