Forum Discussion
mjbeadle
Nimbostratus
Aug 30, 2013Redirect rewrite to remove explicit port
We have an app server that is behaving strangely and I need to try to fix it at the F5.
The server is sending back a 302 moved redirect with the location formatted like this:
https://rwqdn:...
Kevin_Stewart
Employee
Aug 30, 2013A few ways to do this, but here's one example:
when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
HTTP::header replace Location [lindex [split [HTTP::header Location] ":"] 0]
}
}
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