Forum Discussion
hkatzler_36651
Nimbostratus
Jul 23, 2009http redirect with using different pools
Hello,
i need an iRule to redirect http requests. I have to use different pools for diffrent redirects.
Sample:
http://keyaccount.company.com should redirect to http://keyaccount.othe...
hoolio
Cirrostratus
Jul 23, 2009Rewriting a URI would mean that LTM changes the requested host and/or URI before sending the request to the pool. The client would not see the change to the request as long as the application doesn't include the rewritten host and/or URI in response headers/content. For HTTP, the term redirecting the client denotes sending a 30x response with the Location header set to the new location. The client would see the change in host and/or URI. If the host was changed in a redirect, the client would resolve the new host value to an IP address and make a new HTTP request to that host.
Do you want the client to see the change in host and/or URI? Do the new host values resolve to the same virtual server as the original? The iRule example I posted rewrites the host and URI without redirecting the client. For a more expansive Apache ProxyPass iRule, you can check the Codeshare for two examples (Click here).
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
