Forum Discussion
jgrohol_43248
Nimbostratus
Jun 28, 2010Port Translation
I've been struggling all day with this one... I have two separate problems and not sure if they are related.
1. I have a VS configured to listen on an IP and on port HTTP 80. I have it attac...
Michael_Yates
Nimbostratus
Jun 28, 2010You will need to find what is sending the 301 Redirect (sounds like the server(s)) and stop it there.
This should capture the redirect from the server and change the "server1" value to "test1". If the server is indeed sending this redirect back to the requestor, then this iRule will create and endless loop between the two.
when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
HTTP::header replace Location [ string map {"server1" "test1"} [HTTP::header Location] ]
}
}
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