Lighttpd webdav

From wikinotes

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

NOTE:

lighttpd must be compiled with sqlite support ./configure --with-webdav-props.
you'll need to build it from ports on freebsd

Ignore modules.conf and the various conf.d/*.conf files,
but mind your module order according to module.conf's instructions.

# Global Vars
var.log_root = "/var/log/lighttpd"
var.server_root = "/usr/local/www/lighttpd"
var.state_dir = "/var/run"
var.home_dir = "/var/run/lighttpd"
var.conf_dir = "/usr/local/etc/lighttpd"

# Enable Modules
server.modules = (
    "mod_access",
    "mod_webdav",
)

# Daemon Settings
server.username = "www"
server.groupname = "www"
server.pid-file = state_dir + "/lighttpd.pid"
server.errorlog = log_root + "/error.log"
include conf_dir + "/conf.d/access_log.conf"
include conf_dir + "/conf.d/mime.conf"

# Server
webdav.activate = "enable"
server.document-root = "/usr/local/www/lighttpd-webdav/data"
server.sqlite-db-name = "/usr/local/www/lighttpd-webdav/webdav.db"
server.bind "0.0.0.0"
server.port = 80
server.use-ipv6 = "disable"

# ... add auth semantics ...