Forum Discussion
bernie_9326
Nimbostratus
Feb 24, 2010in layer 7 routing, how to direct request under SSL
Hi
Wondering if you can help. We are trying to use layer 7 routing to send web requests to three different pools.
Our questions are - is there a way to set up Layer 7 routing such that ...
The_Bhattman
Nimbostratus
Feb 24, 2010Hi Bernie,
Are you running 2 virtual address, one running on http and other on https
In that case you could use the following on HTTP
when HTTP_REQUEST {
log local0. "uri=[HTTP::uri]"
if {[HTTP::uri] starts_with "/acme"} {
log local0. " going to pool-acme"
pool pool-acme
}
}
The other can be applied to HTTPS
when HTTP_REQUEST {
log local0. "uri=[HTTP::uri]"
switch -glob [string tolower [HTTP::uri]] {
"/onlyssl*" { pool pool-onlyssl }
default { pool pool-bob }
}
}
I hope this helps
Bhattman
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