Forum Discussion
Alexey_3450
Nimbostratus
Dec 13, 2012"pool member IP port" doesn't select the pool member
Hello, dear colleagues!
It's already 4th hours I feel like a moron trying to understand what's happening.
I have a VIP configured on :any ports with clientssl profile which permits both SSL...
Michael_Yates
Nimbostratus
Dec 13, 2012Hi Alexey,
I would suggest putting all of your IP Addresses into a Data Group for matching. You might find it easier to manage.
You can access them by doing something like this (close example, but will require some adjustments):
when HTTP_REQUEST {
set redirecturl [class match -value [string tolower [HTTP::uri]] starts_with string_value_test_group ]
if { $redirecturl ne "" } {
HTTP::respond 301 Location $redirecturl
}
http://devcentral.f5.com/wiki/iRules.class.ashx
}
The matching Data Group:
class string_value_test_group {
{
"/booking" { "http://www.yahoo.com" }
"/contact" { "http://www.google.com" }
"/parties" { "http://www.msn.com" }
}
}
Then look at the putting in some logging statements. I suspect that your matching statement is working out, so log your information to "log local0." and look in the /var/log/ltm log to see what is happening before your matching statement. The portions of the pool command should be space delimited "pool my_Pool member 10.1.2.200 80" so that may be your problem.
Hope this helps.
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