Forum Discussion
Parveez_70209
Nimbostratus
Nov 08, 2013Syntax to Map Virtual-Server's Character with Data-Group which Contains Pool Name
Kindly have a look into the below Irule:
1.Last part of the Data-Group: dg_parveez_dynamic_pools contains a list of all dynamic pools:
2.Idea is to apply/create a single Irule into the future and a...
Parveez_70209
Nimbostratus
Nov 11, 2013I am using the below:
Using the below:
when CLIENT_ACCEPTED { set default_pool [LB::server pool]
log local0. "Default pool [LB::server pool] set" log local0. "Client IP is [IP::remote_addr]" } when HTTP_REQUEST { switch -glob [string tolower HTTP::uri]] { "/" { log local0. "redirecting from /" HTTP::redirect "http://www.parveez.com/us/en" return pool pool_www.parveez.com_http } "/ISS_Static*" { if { [class match [virtual] equals Parveez_Static1] } { pool [class match -value [virtual] equals Parveez_Static1] } else { log local0. "Static pool entry for [virtual] not created yet" reject } return } default { if { [class match [virtual] equals Parveez_Dynamic1] } { pool [class match -value [virtual] equals Parveez_Dynamic1] } else { log local0. "Dynamic pool entry for [virtual] not created yet" reject } return } } }
Where Parveez_Dynamic1 is : test-parveez.com-HTTP:= pool_ctbuild.leni2.com_http
And Parveez_Static1 is : test-parveez.com-HTTP:=pool_confarmct.leni2.com_http
Thanks and Regards Parveez
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