Forum Discussion
John_Klemm_4418
Nimbostratus
Oct 20, 2006layout
here is my Irule for two new servers coming in on VIP .77
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
sites.xxx.xxx.mil { pool sites.xxx.xxx.mil_pool}
eusmc.xxx.xxx.usmc.mil {pool
eusmc.xxx.xxx.usmc.mil_pool}
ehqmc.xxx.xxx.usmc.mil {pool
ehqmc.xxx.xxx.usmc.mil_pool}
tecom.xxx.xxx.usmc.mil {pool
tecom.xxx.xxx.usmc.mil_pool}
mccdc.xxx.xxx.usmc.mil {pool
mccdc.xxx.xxx.usmc.mil_pool}
caocl.xxx.xxx.usmc.mil {pool
caocl.xxx.xxx.usmc.mil_pool}
default {pool default_pool}
}
}
Vip .77 already is running one site and has an SSL cert attached to it. The ssl cert is a single self signed cert. I added the irule above because we have a new customer that will be using the same Vip but hosting different sites than our current customer. Our current customer own two servers which are identical address is portal.xxx.xxx.mil. I have created separate pools for each site listed above. When I applied this irule in hopes that the new sites and the irule would point the traffic to the new pool. It isn't working can anyone tell me why?
- Colin_Walker_12Historic F5 AccountIt looks like you coded the switch statement appropriately, assuming that each hostname with "xxx.xxx" in it matches the incoming hostname fromt he client, and the pool is valid.
when HTTP_REQUEST { switch [string tolower [HTTP::host] ] { sites.xxx.xxx.mil { pool sites.xxx.xxx.mil_pool } eusmc.xxx.xxx.usmc.mil { pool eusmc.xxx.xxx.usmc.mil_pool } ehqmc.xxx.xxx.usmc.mil { pool ehqmc.xxx.xxx.usmc.mil_pool } tecom.xxx.xxx.usmc.mil { pool tecom.xxx.xxx.usmc.mil_pool } mccdc.xxx.xxx.usmc.mil { pool mccdc.xxx.xxx.usmc.mil_pool } caocl.xxx.xxx.usmc.mil { pool caocl.xxx.xxx.usmc.mil_pool } default { pool default_pool } } }
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