Forum Discussion
Adrian_P
Nimbostratus
Aug 21, 2013Add a prefix before sending the request to the Pool
Hi,
Scenario :
A single VS (3.3.3.3) with two different Pool based on the URI prefix :
Pool A: the member web server 1.1.1.1 is configured on a Virtual Directory /web
Pool B: the ...
Adrian_P
Nimbostratus
Aug 25, 2013Thank you very much for all the help.
I have finally get it working and here is the final irules that I use. I add some log command as a troubleshooting tool to log the variable in the /var/log/ltm
Add /web prefix
Unless it started with /reports
when HTTP_REQUEST {
log local0. "in HTTP_REQUEST"
set orguri [HTTP::uri]
log local0. "Original: $orguri."
if {[string tolower $orguri] starts_with "/reports"}
{
pool pool_b
}
else {
set newuri "/web[HTTP::uri]"
HTTP::uri $newuri
pool pool_a
}
log local0. "After mapping: [HTTP::uri]"
log local0. "Pool: [LB::server pool]"
}
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