Forum Discussion
Syntax to Map Virtual-Server's Character with Data-Group which Contains Pool Name
Thank you so much Kevin,
- Adding one more point related to the part related to /iss_static content( mentioned into my first reply post into this topic), which generally used for customer's static pages:
"/iss_static*" { pool $static_pool return
- Currently there are only 3 pools against the same named as, might be in future these may also increase:
pool_confarma1.leni2.com_http
pool_confarma2.leni2.com_http
pool_confarma3.leni2.com_http
-
So, in actual Irule, one of these pools are manually selected/mentioned in place of static_pool.
-
So, as this is also associated with earlier mentioned Virtual-Servers:
apuat.leni2.com-VS-HTTP
apbuild.leni2.com-VS-HTTP
apctdev.leni2.com-VS-HTTP
Biggest challenge is these Virtual-Server's naming convention is not matching with the pools mentioned against the static_pools.
So, query:
A) Can we apply here also a Data-Group lets say named as dg_parveez_static_pools ? B) Can we take the same Format while adding up into the String list ?
apuat.leni2.com-VS-HTTP:=pool_confarma1.leni2.com_http
apbuild.leni2.com-VS-HTTP:=pool_confarma2.leni2.com_http
apctdev.leni2.com-VS-HTTP:=pool_confarma3.leni2.com_http
C) Can the same Irule format will apply for this too ?
[class match [virtual] equals dg_parveez_static_pools]
If yes , kindly suggest the final Irule by editing 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 [HTTP::uri] {
"/" {
log local0. "redirecting from /"
HTTP::redirect "http://www.parveez.com"
return
pool pool_parveez.com-http
}
"/iss_static*" {
pool $static_pool
return
}
default {
[class match [virtual] equals dg_parveez_dynamic_pools]
return
}
}
}
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