lighttpd

lighttpd is a simple, lightweight server that has become popular recently.

Notes:

Instant WebDAV server (very useful when you’ve got to access the filesystem in a remote machine behind a firewall):

$ cat lighttpd.conf
$HTTP["url"] =~ "/.*" {
webdav.activate = "enable"
webdav.is-readonly = "disable"
}
server.bind = 127.0.0.1
server.port = 8090
server.document-root="/tmp"
server.modules = ( "mod_auth", "mod_access", "mod_webdav", "mod_accesslog" )
accesslog.filename = "/tmp/access_log"

Fire it up, forward a local port to the remote machine ( -C -L 8090:127.0.0.1:8090 is recommended), and connect to http://localhost:8090 in the .

launchd item installed by MacPorts :

$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.lighttpd.plist

This page is referenced in: