After two days of searching, I decided to ask this question here:
I have extremely limited lighttpd installed on my iDevice, and I need to redirect all received https traffic to http. I don't have mod_rewrite nor do I have ssl compiled in.
I came up with this, but it doesn't seem to work:
$SERVER["socket"] == ":443" {
$HTTP["host"] =~ ".*" {
url.redirect = ( ".*" => "http://%1" )
}
}
Also, for lighttpd to get the port 443 traffic, do I need to set server.port to 443, or can I just leave it = 80 in the config file?
Thanks in advance!