Tuesday, 5 April 2011

Enable WebDav in Lighttpd - ligthy's mod_webdav

To enable WebDav in Lighttpd, e.g. to serve ics-style calendars for Mozilla Thunderbird simply edit

/etc/lighttpd/lighttpd.conf

and append following lines - adopt them to your needs

$HTTP["host"] == "mydomain.tld" {
alias.url = ( "/mypath" => "/were/the/files/are/" )
$HTTP["url"] =~ "^/mypath($|/)" {
webdav.activate = "enable"
webdav.is-readonly = "disable"
webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"
}
}

then go to the top of this very file and enable the module

server.modules = (
"mod_access",
"mod_alias",
"mod_webdav",


Gracefully restart the daemon and you are done

/etc/init.d/lighttpd force-reload
Did it work for you - drop a comment.

No comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Modern Warfare 3