when HTTP_REQUEST {
set uri [HTTP::uri]
if {[class match $uri starts_with DG1]} {
pool POOL_SSL
}
if {[class match $uri eq DG_EXACT] or $uri eq "/" } {
pool POOL_SSL
}
}
Is it possible to use a wildcard like “/*” in the datagroup such that we no longer need to add thousands of URI in the future?
If your intention is to allow every URI of a particular domain, why do you put wildcard of /* rather than just whitelisting the particular domain itself.
So you need not worry of adding thousands of URI, but just allow that particular host.
when HTTP_REQUEST {
if { [HTTP::host] contains "domain.com" }
{ pool POOL_SSL }
else
{ drop }
}