Forum Discussion
Rob_78584
Nimbostratus
May 03, 2007Modify host in HTTP Redirect
I have VS-A going to a pool with Server-A. Server-A sends a redirect to the user which points to an unaccessible host (Server-X).
I need to be able to capture the HTTP redirect from Server-...
kykong_107132
Nimbostratus
May 03, 2007Hi,
please try this irule below. happy trying.
when HTTP_RESPONSE {
if {[HTTP::is_redirect]} {
set find "http://VS-A_ipaddress/"
set replace "http://VS-B_ipaddress:port/"
set location [HTTP::header value Location]
HTTP::header replace Location [string map { "http://VS-A_ipaddress/" "http://VS-B_ipaddress:port/"} $location]
}
}
regards,
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
