here is a short guide on how to setup WebDAV for the current 9.2 release. (Was only tested on a none embedded install)
1) Create your webroot folder "www" and add a subfolder named "dav", we use "/mnt/www/dav/" for this example. Change the owner for those 2 folders (www, dav) to the "www" user.
2) go-to: Services->Webserver and enter/select your "Document root" location, we select "/mnt/www/" for this example. Make sure it has the last "/" at the end of the path!
3) Change your "Upload directory" to a location on a persistent disk with enough space, this folder will be used by the webdav for temporary/partial uploads.
4) Copy and paste this into the "Auxiliary parameters":
Code: Select all
############ WEBDAV ################
server.modules += ( "mod_webdav")
$HTTP["url"] =~ "^/dav($|/)" {
webdav.activate = "enable"
webdav.sqlite-db-name = "/tmp/lighttpd.webdav_lock.db"
}
6) Verify that we now have a "/tmp/lighttpd.webdav_lock.db" file.
Optional, but recommend:
7) Create a "webdav" user that has "www" as "Primary group" and uses the "nologin" shell.
8) Enable "Authentication" in the Webserver service panel and add the "/dav" as path and use something like "WebDAV" as realm.
9) Restart and check if u now need to login to access the "http://mydomain.com/dav" folder.
10) If u only want the WebDAV to work, change the port of the webserver and/or enable https, but u than need to use "http://mydomain.com:port/dav" or "https://mydomain.com/dav".
NOTE: Any valid user can be used as login, but it is recommend to only use the newly created webdav user.
Now u should be able to use the WebDav.
On windows/mac u can now use tools like Cyberduck or Expandrive to directly access/mount the dav folder. (Windows WebFolders or the total commander "WebDAV" plugin works too)
bye
Andy
PS: If all worked correctly and u now "mount" the dav via a compatible client software, u should be able to directly play/stream/seek a .mkv/.avi videofile, without the need to completely download the file first.
NOTE: Streaming capabilities depend on the used client software, davfs2/windows webFolders seem not to support block-level aka streaming access. This means davfs2/webfolders will download the whole file before it is presented to the opening application, so direct, fast streaming will not work. For Windows WebFolders/Mount as Network drive u also need a registry tweak http://www.scotttyee.com/blog/2011/07/2 ... windows-7/
Commercially available mounting tools like Expandrive/Netdrive/Webdrive do support direct streaming and block-level access.
If u know any free tools that support mounts + streaming at a good speed, plz leave a comment. So far Webdrive is by far the fastest in my tests on Win7.





