Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:nas:webdav [2023/03/01 10:01] – [Browser UI for the WebDAV share] stokito | docs:guide-user:services:nas:webdav [2023/03/18 20:24] – [Test it] removed cadaver stokito | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ==== WebDAV with Lighttpd ==== | ==== WebDAV with Lighttpd ==== | ||
| - | Assuming that USB drive is mounted to ''/ | + | First of all if you already have the Lighttpd then update it and it's modules to avoid conflicts: |
| + | <code bash> | ||
| + | opkg update | ||
| + | opkg list-upgradable | cut -f 1 -d ' ' | grep lighttpd | xargs opkg upgrade | ||
| + | </ | ||
| + | |||
| + | Assuming that USB drive is mounted to ''/ | ||
| <code bash> | <code bash> | ||
| - | mkdir -p / | + | mkdir -p / |
| - | chown http: | + | chown http: |
| cat << " | cat << " | ||
| $HTTP[" | $HTTP[" | ||
| - | server.document-root := "/srv/ | + | server.document-root := "/mnt/ |
| auth.backend = " | auth.backend = " | ||
| auth.backend.plain.userfile = "/ | auth.backend.plain.userfile = "/ | ||
| Line 58: | Line 64: | ||
| <code bash> | <code bash> | ||
| - | curl -u youruser -X PROPFIND -H "Depth: 1" | + | curl -u youruser:pass -X PROPFIND -H 'Depth: 1' |
| </ | </ | ||
| You must see a 207 status code and XML response with directory listing. | You must see a 207 status code and XML response with directory listing. | ||
| - | + | See more details and examples [[https://gist.github.com/stokito/cf82ce965718ce87f36b78f7501d7940|WebDAV with curl]] | |
| - | For advanced test install the FTP-like command line client '' | + | |
| - | + | ||
| - | < | + | |
| - | cadaver http://192.168.1.1/dav/ | + | |
| - | Authentication required for webdav on server `192.168.1.1': | + | |
| - | Username: youruser | + | |
| - | Password: | + | |
| - | dav:/ | + | |
| - | Listing collection `/ | + | |
| - | README.txt | + | |
| - | dav:/ | + | |
| - | Displaying `/ | + | |
| - | It works! | + | |
| - | dav:/ | + | |
| - | Connection to `192.168.1.1' | + | |
| - | </code> | + | |
| ==== Don't forget about encryption! ==== | ==== Don't forget about encryption! ==== | ||