Lighttpd webdav

From wikinotes
Revision as of 03:23, 12 February 2023 by Will (talk | contribs) (→‎Configuration)

Let's create an authenticated webdav server, hosted by lighttpd.

Tutorials

lighttpd webdav on debian https://www.howtoforge.com/tutorial/how-to-install-webdav-with-lighttpd-on-debian-jessie/
lighttpd webdav https://gist.github.com/dream1986/4e4a1f24c0b24d216d75e2f9e25fc78d

Configuration

TODO:

this is WIP instructions

/usr/local/etc/lighttpd/modules.conf


The order of the modules is important.
Maybe copy the modules.conf.example so you can keep track of changes between updates?

include conf_dir + "/conf.d/webdav.conf"


/usr/local/etc/lighttpd/lighttpd.conf


INCOMPLETE:

reroute webdav

server.modules = {
    "mod_webdav",

    $HTTP["host"] == "foo.com" {
        server.document-root = "/usr/local/www/foo.com/site"
        $["url"] =~ "^/orgmode($|/)" {
            webdav.activate = "enable"
            webdav.is-readonly = "disable"
            webdav.sqlite-db-name = "/usr/local/www/foo.com/lighttpd-webdav.db"
            auth.backend = ""
        }
    }
}