Differences
This shows you the differences between two versions of the page.
sailing:webdav [2024/01/12 18:05] – created willy | sailing:webdav [2024/02/22 09:47] (current) – removed willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | I use NGINX for this: | ||
- | |||
- | <file txt webdav.conf> | ||
- | |||
- | location ~ ^/public { | ||
- | root / | ||
- | |||
- | dav_methods PUT DELETE MKCOL COPY MOVE; | ||
- | dav_ext_methods PROPFIND OPTIONS; | ||
- | dav_access user:rw group:rw all:r; | ||
- | |||
- | client_max_body_size 0; | ||
- | create_full_put_path on; | ||
- | client_body_temp_path / | ||
- | |||
- | } | ||
- | |||
- | location ~ ^/ | ||
- | alias / | ||
- | |||
- | auth_pam " | ||
- | auth_pam_service_name " | ||
- | |||
- | dav_methods PUT DELETE MKCOL COPY MOVE; | ||
- | dav_ext_methods PROPFIND OPTIONS; | ||
- | dav_access user:rw group:rw all:r; | ||
- | |||
- | client_max_body_size 0; | ||
- | create_full_put_path on; | ||
- | client_body_temp_path /home/temp; | ||
- | } | ||
- | </ | ||
- | |||
- | the trick here is to match root content with actual location path (so, if root is /data/stuff and location is /archive, create folder / | ||
- | |||