Forum Discussion
Tom_92690
Nimbostratus
Jul 09, 2009URL Rewrite
Hi,
We want to have a VIP A to accept traffic on port 80 and listen to http://www.xyz.com. Then the http request needs to be rewrited depending on the node that will process the traffic. If node A takes the traffic the request needs to be http://www.abc.com. If node B takes the traffic the request needs to be http://www.def.com. There will only be 1 node enabled in the pool. Nodes will be disabled/enabled manually in the pool. How should my I-rule look like?
Thanks in advance
Tom
- hoolio
Cirrostratus
Hi Tom,when HTTP_REQUEST_SEND { Force evaluation in the clientside context clientside { Check the requested pool member switch [IP::server_addr] { 1.1.1.1 { HTTP::header replace Host "www.abc.com" } default { HTTP::header replace Host "www.def.com" } } } }
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects