I cannot seem to proxy a URL to another port on same hostname. I have user interface (Angular 5) running on somehost:8080 and the rest of the web application on somehost.com (port 80). I'd like to proxy http://somehost.com/xxx to http://somehost.com:8080. Not sure if my configuration is correct or in the right place.
$HTTP["host"] =~ "somehost\.com$" {
$HTTP["url"] =~ "(^/xxx/)" {
proxy.server = ( "" => ("" => ( "host" => "somehost.com", "port" => 8080 )))
}
url.rewrite-if-not-file = (
"^/(.*)" => "/index.php/$1",
)
}