Skip to content

Instantly share code, notes, and snippets.

@kejadlen
Created July 25, 2012 06:24
Show Gist options
  • Save kejadlen/3174722 to your computer and use it in GitHub Desktop.
Save kejadlen/3174722 to your computer and use it in GitHub Desktop.
server.modules = (
...
"mod_webdav",
...
)
$HTTP["host"] =~ "weave.foo.com" {
server.document-root = "/foo/weave"
accesslog.filename = "/var/log/lighttpd/weave/access.log"
webdav.activate = "enable"
webdav.is-readonly = "disable"
webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/foo/weave/passwd.dav"
auth.require = ( "" => ( "method" => "basic",
"realm" => "webdav",
"require" => "valid-user" ) )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment