$HTTP["scheme"] == "http" {
$HTTP["host"] =~ "^(.*)$" {
url.redirect = ("^/folder/(.*)$" => "https://%1/$1")
}
}
Obviously, the %1 is inserting the host - but where is getting it from? My first thought is in from the line above it where it is matching against the host, but that doesn't seem right.
Is %1 is a built-in placeholder for the hostname or is it coming from the previous "host" match?