Forum Discussion
Syntax to Map Virtual-Server's Character with Data-Group which Contains Pool Name
Sir, currently I used two-Data groups version( BIGIP V10), one static an done dynaic. As static contents are not coming. I also tired to remove strin tolower too( from the first part), now that's opening:
when HTTP_REQUEST { switch -glob [ HTTP::uri] { "/" { log local0. "redirecting from /" HTTP::redirect "http://www.parveez.com" return pool pool_parveez.com-http } "/iss_static*" { if { [class match [virtual] equals dg_parveez_static_pools] } { pool [lindex [split [class match -value [virtual] equals dg_parveez_static_pools] ","] 1] } else { log local0. "Static pool entry for [virtual] not created yet" reject } return } default { if { [class match [virtual] equals dg_parveez_dynamic_pools] } { pool [lindex [split [class match -value [virtual] equals dg_parveez_dynamic_pools] ","] 0] } else { log local0. "Dynamic pool entry for [virtual] not created yet" reject } return } } }
And Sir also when someone type HTTP, it should redirect to HTTPS.
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