Created
March 22, 2016 06:25
-
-
Save zeptometer/73edf50ec6eed6f84e9c to your computer and use it in GitHub Desktop.
Webdav Settings on Nginx
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 80; | |
server_name dav.pohe; | |
location / { | |
root /var/www/webdav; | |
auth_basic "pohe!"; | |
auth_basic_user_file /etc/nginx/conf.d/.htpasswd; | |
client_max_body_size 100m; | |
autoindex on; | |
autoindex_exact_size off; | |
autoindex_localtime on; | |
client_body_temp_path /tmp/nginx/webdav; | |
create_full_put_path on; | |
dav_access group:rw all:r; | |
dav_methods PUT DELETE MKCOL COPY MOVE; | |
dav_ext_methods PROPFIND OPTIONS; | |
access_log /var/log/nginx/webdav.access.log; | |
error_log /var/log/nginx/webdav.error.log; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment