I just got HTTPS and redirect from HTTP to work on the AR750 (v2.27):
-
ssh into your router with root
-
create certificate:
mkdir /etc/lighttpd/certs
cd /etc/lighttpd/certs
openssl req -new -x509 -keyout lighttpd.pem -out lighttpd.pem -days 3650 -nodes
chmod 400 lighttpd.pem
- configure lighthttp
/etc/init.d/uhttpd disable
opkg update
opkg install lighttpd-mod-redirect
vi /etc/lighttpd/lighttpd.conf
add to end of file
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/certs/lighttpd.pem"
}
$SERVER["socket"] == ":80" {
$HTTP["host"] =~ "^(.*)$" {
url.redirect = ( "^/(.*)" => "https://%1/$1" )
}
}
- restart webserver and check if it works
/etc/init.d/lighttpd restart
- reboot
reboot
2 Likes