I'm trying to setup webdav on lighttpd but I'm getting a lighttpd.conf: parser failed somewhere near here at end-of-file. The webdav config is at the end of the file: here it is-
$HTTP["host"] == "www.markmhart.com" {
server.document-root = "/var/www/servers/www.markmhart.com/pages/"
$HTTP["url"] =~ "^/download/" {
dir-listing.activate = "enable"
}
alias.url = ("/media" => "/media/mark/media")
$HTTP["url"] =~ "^/media($|/)" {
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 = "/var/www/servers/www.markmhart.com/passwd.dav"
auth.require = ( "" => ( "method" => "basic",
"realm" => "webdav",
"require" => "valid-user" ))
}
Thanks in advance for your help.