Forum Discussion
Siddharth_Sezhi
Nimbostratus
Oct 17, 2006pool redirection based on webaddress
Hi,
I have request from a client, they wanted all traffic thats coming to their site https://www.deve.com redirected to a pool and the traffic to https://deve.com redirected to another pool. they wanted a same VIP pointing to both webaddress. Kindly help me out.
Thanks in advance.
Regards
Siddharth S
1 Reply
- hoolio
Cirrostratus
If you want to direct the requests based on the HTTP host header, you can use a rule like this:when HTTP_REQUEST { set host [string tolower [HTTP::host]] if { $host ends_with "deve.com" }{ if { $host == "www.deve.com" }{ pool www.deve.com_pool } elseif { $host == "deve.com" }{ pool deve.com_pool } } else { pool default_pool } }
You will need to configure a VIP with a clientssl profile.
Note that as this is HTTPS, you will need to have already presented a certificate for www.deve.com, deve.com or *.deve.com (wildcard cert) in order to decrypt the traffic and apply the rule.
If you don't use a wildcard cert, the browser will prompt the user to accept the cert when a client makes a request to the VIP using a hostname that isn't listed in the CN field of the cert.
Aaron
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
