I just got HTTPS and redirect from HTTP to work on the AR750 (v2.27):

  1. ssh into your router with root

  2. 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

  1. 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" )
    }
}
  1. restart webserver and check if it works

/etc/init.d/lighttpd restart

  1. reboot

reboot

2 Likes