diff --git a/firmware_mod/config/lighttpd.conf.dist b/firmware_mod/config/lighttpd.conf.dist index dc2713e..655abe8 100644 --- a/firmware_mod/config/lighttpd.conf.dist +++ b/firmware_mod/config/lighttpd.conf.dist @@ -52,10 +52,13 @@ $HTTP["url"] !~ "^/.well-known/(.*)" { #SSL is enabled by default #If disabling SSL you must clear your site cookie $HTTP["scheme"] == "http" { - # capture vhost name with regex conditiona -> %0 in redirect pattern - # must be the most inner block to the redirect rule - $HTTP["host"] =~ ".*" { - url.redirect = (".*" => "https://%0$0") + # Do not apply rule to 127.0.0.1, for ssh tunnels + $HTTP["remote-ip"] != "127.0.0.1" { + # capture vhost name with regex conditiona -> %0 in redirect pattern + # must be the most inner block to the redirect rule + $HTTP["host"] =~ ".*" { + url.redirect = (".*" => "https://%0$0") + } } } }