Forum Discussion
Need help to understand the irule
To update the Host header value without redirecting the client to the new Host value, you can use HTTP::header replace Host “csk-net-bw.aci.network”. This update will only affect the request to the pool member. The client will not see the update unless the web application uses the requested host header value to generate response headers and/or content.
if {([string tolower [HTTP::host]] equals "csk-net-corp.aci.network")}{
HTTP::header replace Host "csk-net-bw.aci.network"
}
In 2nd request, traffic are served by different group of pool member if condition matches. URL will be remain same csk-net-corp.aci.network
if { [HTTP::path] starts_with "/test/network" } { pool P_CSK_NET_5001
}
Hi Samir , thanks for your reply ..
I have few doubts ,
1) In my case both the condition or request are there in the same irule.So it will replace the host header and also it will send the request to the specified pool - P-CSK_NET_5001 right ?
2)In which scenrio we would require to change the host haeder , whar are we going to achive with that ?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com