Forum Discussion
Andi_102219
Nimbostratus
Oct 21, 2010ProxyPass issues
I'm using LTM v9.3 and want to redirect requests to a certain URL with the ProxyPass iRule.
iRule is assinged to my virtual server(s) and created the needed data group(s).
I guess I'm h...
hoolio
Cirrostratus
Oct 26, 2010Hi Andi,
Sorry, I think there was a mismatch in naming conventions. The ProxyPass rule is generally designed to hide the host and/or URI rewriting to transparently rewrite the requests before load balancing them. So it doesn't generally redirect. It looks like the intended ProxyPass functionality is working as the URI is being rewritten from /test/ to /php/somepath/.
If you want to redirect /test to /php/somepath/, you could use a simpler iRule like this:
when HTTP_REQUEST {
Check if URI is /test or /test/
switch [HTTP::path] {
"/test" -
"/test/" {
HTTP::redirect "/php/somepath/"
}
}
}
Aaron
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