Forum Discussion
Jose_Santiago_O
Nimbostratus
Nov 02, 2005Redirecting real http users.
Hello,
I've just migrated from big-ip 4.5.11 to 9.1. In big-ip 4.5 We had a rule to redirect real-server requests (port 8080) from the original URI to URI+?usehostname, since this is the valid sy...
Nov 02, 2005
Try taking the HTTP::redirect command out of the brackets. Also, HTTP::uri begins with a slash and you included one so you'll end up with a double slash at the beginning of the uri which is probably not what you were intending.
when HTTP_REQUEST {
if {[HTTP::uri] ends_with "usehostname"} {
pool pool_real_8080
} else {
HTTP::redirect "http://[HTTP::host]:8080[HTTP::uri]?usehostname"
}
}
-Joe
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