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 having problems to exactly understand how it works. Therefore I enabled the logging to see what's going on.
Rule ProxyPass : , Host=, URI=/test: Found Rule, Client Host=, Client Path=/test, Server Host=, Server Path=/php/telefonauskunft
Rule ProxyPass : , Host=, URI=/test: Redirecting to http:///test/
So the issue is simply described. I want to redirect from "requested-host" to the recognized server host ("other-host"). But when I try it just redirects me to the original requested host.
Strange...
What's wrong / Where is my missunderstanding?
6 Replies
Sort By
- Derek_Murphy_38
Nimbostratus
Hi Andi, - hoolio
Cirrostratus
Hi Andi, - Andi_102219
Nimbostratus
@Derek no that didn't really help me :-( - hoolio
Cirrostratus
Hi Andi,when HTTP_REQUEST { Check if URI is /test or /test/ switch [HTTP::path] { "/test" - "/test/" { HTTP::redirect "/php/somepath/" } } }
- Andi_102219
Nimbostratus
Thanks for your reply! The "simple iRule" is already in place but I need to replace the following from the apache config:RewriteCond %{HTTP_REFERER} ^https://host1.domain.de/.* RewriteRule ^/test/(.*) http://host2.domain.de/some/path/$1 [P] ProxyPassReverse /test/ http://host2.domain.de/some/path/
- hoolio
Cirrostratus
Do you want clients to see the change of the host and/or URI in the browser address bar? Or do you want to rewrite it transparently? Redirects will show the client the change. Rewrites will hide them. The ProxyPass rule uses rewrites.
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