Derscripes howto setup a webserver for file exchange in a Bit Repository system.
Lighttpd
Enabling upload (WebDAV):
Add "mod_webdav" to server.modules, and configure it:
webdav.activate = "enable" webdav.is-readonly = "disable" webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"
Enabling SSL (HTTPS) on port 443:
$SERVER["socket"] == ":443" { ssl.engine = "enable" ssl.pemfile = "/path/to/server.pem" ssl.ca-file = "/path/to/ca.crt" }
To enable client authentication add the following to the configuration:
ssl.verifyclient.activate = "enable" ssl.verifyclient.enforce = "enable" #ssl.verifyclient.depth = "1" # Should possibly be enabled in the future ssl.verifyclient.username = "SSL_CLIENT_S_DN_CN"
References:
Configuring SSL
Redirecting HTTP to HTTPS