# ipkg update
# ipkg upgrade
# ipkg install lighttpd
# ipkg upgrade
# ipkg install lighttpd
Create certificate - selfsigned is easy:
# mkdir /etc/lighttpd/ssl/domain.com -p
# cd /etc/lighttpd/ssl/domain.com
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
Add to /opt/etc/lighttp/lighttp.conf:
server.event-handler = "poll" # (http://www.wl500g.info/showthread.php?t=20306)
And at the end:
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile =
"/path/to/example.org.pem"
server.document-root = "..."
}
Add firewallrule:
iptables -I INPUT -m tcp -p tcp --dport 443 -j ACCEPT
and finally
flashfs save&& flashfs commit&& flashfs enable&& reboot
installing webdav:
:( there is no lighttp-mod-webdav in the repository and i have no time to build one.
Kommentare