Forum Discussion
Syntax to Map Virtual-Server's Character with Data-Group which Contains Pool Name
Hi Kevin,
- We checked the status by creating two data-groups: for Static and Dynamic Contents and attach to the Irule and thats works.
- We checked the status by creating One Data-Group too which contain Static and Dynamic Content and it too looking good.
- Now coming back to point no: 1 ,as the part of the new requirement they wanted to create a separate or 3rd Data-group with which bind the full extension with the pool name.
The Aim is to minimize the manual Modification into the Irule.
Now this is the one sample Irule where Static Data-Group is Parveez_Static104 and Dynamic Data-Group named as Parveez_Dynamic104
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 [HTTP::uri] { "/" { log local0. "redirecting from /" HTTP::redirect "http://apbuild.leni2.com/SEUILibrary/controller/e/web/LenovoPortal/en_US/catalog.workflow:test-home"
return pool pool_apbuild.leni2.com_http } "/iss_static*" { if { [class match [virtual] equals Parveez_Static104] } { pool [lindex [split [class match -value [virtual] equals Parveez_Static104] ","] 1] } else { log local0. "Static pool entry for [virtual] not created yet" reject } return } default { if { [class match [virtual] equals Parveez_Dynamic104] } { pool [lindex [split [class match -value [virtual] equals Parveez_Dynamic104] ","] 0] } else { log local0. "Dynamic pool entry for [virtual] not created yet" reject } return } } }
and now as we need to create the 3rd Data-group which will include http://apbuild.leni2.com/SEUILibrary/controller/e/web/LenovoPortal/en_US/catalog.workflow:test-home and pool :pool_apbuild.leni2.com_http and than will need to modify the Irule, so next time we just need to adjust only into the Data-Group.
As you alrready specified some breakup into the Irule with reponse 302, what if we add some 301 redirect in that.
Kindly suggest into this Irule.
Thanks and Regards Parveez
Recent Discussions
Related Content
* 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