Forum Discussion
daveferrier_202
Nimbostratus
Feb 04, 2014Need help with irule masking the url, please.
Hello, I have a need for an irule, I believe. Been browsing around dev central with no luck.
I have the following scenario External facing LTM - vip "A" listening on port 443 with a pool member ...
Kevin_Stewart
Employee
Feb 04, 2014At the very least you should:
-
Rewrite the host header on incoming traffic (internal LTM) in case that's causing the server to send the redirect, and
-
Rewrite the Location header on outgoing redirects (internal LTM)
when HTTP_REQUEST { HTTP::header replace Host "x.x.x.x:8020" } when HTTP_RESPONSE { if { [HTTP::header exists Location] } { HTTP::header replace Location [string map {"http://x.x.x.x:8020" "https://x.x.x.x"} [HTTP::header Location]] } }
That'll cover the incoming Host header to the web servers and outgoing redirects to the client. If that doesn't completely work, then there may still be internal document object references to deal with.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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