<VirtualHost *:80>
ServerName domain.com
ProxyPreserveHost On
ProxyPass / http://192.168.1.10/
ProxyPassReverse / http://192.168.1.10/
Redirect permanent / https://www.domain.com/
</VirtualHost>
$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")
}
}
$HTTP["host"] =~ "(domain.com)" {
proxy.server = ( "" => ( (
"host" => "192.168.128.10",
"port" => 80
)))
}
If I understand domain.com should go to 192.168.128.10, correct?