- Use the Below snippet to rewrite the http request.
- Associate it with the required VS.
when HTTP_REQUEST {
if { [HTTP::header Host] eq “zyx.com” and [HTTP::path] starts_with “/api”}
{
HTTP::header replace Host “abc.com”
HTTP::uri [string map {“/api” “”} [HTTP::uri]]
}
}
Leave A Comment?