Forum Discussion
Add URI in the HTTP Header Replace
We have a request to replace a host header when the pool member is up and URI need to add in the HTTP Header Replace
"xyz.com" {
if { [active_members test123_pool] > 0 } {
pool test123_pool
HTTP::header replace host "abc.com"
HTTP::uri "/isupport"
}
Can someone review and advise me if any changes.
- Lee_Sutcliffe
Nacreous
If you want to replace the host xyz.com with abc.com and change the URI to /itsupport, then this iRule snippet is fine.
Not sure exactly what you mean by "URI need to add in the HTTP Header Replace".
So can't say for certain is the iRule does what you intend.
- SS11
Nimbostratus
If the host matches XYZ then host header need to replace with abc and isupport need to add as a URI
"xyz.com" - "abc.com/isupport"
"xyzc.com/test" - "abc.com/isupport"
- Lee_Sutcliffe
Nacreous
In that case your iRule is fine
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