Forum Discussion
RF5_247672
Nimbostratus
Oct 17, 2017irule for URL remap
Hi All,
I have a situation where I need some help with an Irule ,
the scenario is when a client access a VIP with the URL " https:///XXXX/./"
,it needs to be remapped to "http://../XXXX/" when...
Kevin_Davies
Nacreous
Oct 17, 2017Your load balancing will select the pool member so is not used to select the actual server. We can change the URI and Host header on the way to the pool and thats it.
when HTTP_REQUEST {
foreach {ignore name2 name34 rest} [split [HTTP::uri] {/}] break
HTTP::host "$name34.[getfield [HTTP::host] {:} 1]"
HTTP::uri "/$name2/$rest"
}
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
