Forum Discussion
Content Rewrite
Hi etherchannel01 ,
I have deployed this iRule to simulate your scenario of URL rewriting :
when HTTP_REQUEST {
if { [HTTP::host] equals "shopping.asm.f5" } {
HTTP::header replace Host [LB::server addr]:[LB::server port]
}
}
and I got this Result on my lab :
you can see the host has been changed to the selected pool member and port.
> in your scenario you want the pool member-name:port , not pool member ip address:port
so try to use
[LB::server name]:[LB::server port] (instead of) [LB::server addr]:[LB::server port]
There are a lot of options with [LB::server] function
> may my iRule meets your Concern or give you a clue to find the optimal solution , I test it on my lab and it has given me the expected result accourding my lab scenario.
> If this available with you , I want to see how do you configure the Content rewrite profile , it just for adding to my knowledge.
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