Forum Discussion
Ahmed_Mahmood_1
Nimbostratus
Feb 27, 2008Select Pool Member based on URI or Header
Hi,
I need to direct https requests to a certain pool member based on information included in the URI and need to know if this is possible.
For example, https://mydomain.com?host1:p1 ne...
Nicolas_Menant
Employee
Feb 27, 2008Hi,
To do so you'll need the BIGIP to be the SSL termination.
You can make it dynamic with something like this
Let's say we respect your syntax
ex:
https://mydomain.com?192.168.155.2
This should do the job:
when HTTP_REQUEST {
set pool_member [findstr [HTTP:uri] "?" 1]
pool member $pool_member
}
Be careful this is just an example, if your website send any kind of data within the uri it will not work.
If you specify the ip with a parameter it will be better:
https://mydomain.com?member=192.168.155.2
then you do this:
when HTTP_REQUEST {
set pool_member [findstr [HTTP:uri] "member=" 7 "&"]
pool member $pool_member
}
Should work too
HTH
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