lighttpd redirect from custom HTTP port 81 to HTTPS port 443
问题 I have the following configuration $SERVER["socket"] == ":81" { #$HTTP["scheme"] == "http" { $HTTP["host"] =~ ".*" { url.redirect = (".*" => "https://%0$0") } } As far as i see: %0 expands to serverip:81 . So i need to get rid of :81 from %0 . How? But it leads to the redirection from HTTP port 81 to https://serverip:81 and then fails with SSL_ERROR_SYSCALL . Answer from https://stackoverflow.com/a/62099076/3743145: * LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 192.168.144.1:81