webdav.conf 699 B

123456789101112131415161718192021222324252627282930313233
  1. server {
  2. listen 80;
  3. access_log /dev/stdout;
  4. error_log /dev/stdout info;
  5. # Maximum size of uploaded file, 0 means unlimited
  6. client_max_body_size 0;
  7. fancyindex on;
  8. fancyindex_header /+dav/header.html;
  9. fancyindex_footer /+dav/footer.html;
  10. location /+dav/header.html {
  11. alias /var/www/davindex-header.html;
  12. }
  13. location /+dav/footer.html {
  14. alias /var/www/davindex-footer.html;
  15. }
  16. location / {
  17. root /var/www/html;
  18. autoindex on;
  19. create_full_put_path on;
  20. dav_methods PUT DELETE MKCOL COPY MOVE;
  21. dav_ext_methods PROPFIND OPTIONS;
  22. dav_access user:rw group:rw all:r;
  23. }
  24. }