Forum Discussion
Dec 16, 2019
Hi,
for request "http://1.1.1.1/test/abc?param=1234567890"
host : 1.1.1.1
uri : /test/abc?param=1234567890
path : /test/abc
query : param=1234567890
If you want to change the host, you can use HTTP::redirect
Sample
Request: http://1.1.1.1/test/abc?param=1234567890
Redirect: https://2.2.2.2/test/abc2?param=1234567890
when HTTP_REQUEST {
if { [HTTP::path] equals "/test/abc" } {
set newUri [string map {"abc" "abc1"} [HTTP::path]]
HTTP::redirect "https://2.2.2.2$newUri?[HTTP::query]"
}
}
- Puneet_SETHDec 16, 2019Ret. Employee
Hi,
Here 1.1.1.1 is the VIP and 2.2.2.2 is the backend server.
In original case Host header will be name as it is.