Forum Discussion
hooleylist
Jan 05, 2007Cirrostratus
This should be equivalent for 9.x:
if { [HTTP::uri] matches_regex "^/[-a-zA-Z0-9_/]{1,35}\.[a-zA-Z0-9]{1,5}$" \
&& [HTTP::host] matches_regex "^[-a-zA-Z0-9\._]{1,30}(\:[0-9]{1,5})?$"}{
pool web_seal_pool
}
elseif { [HTTP::uri] matches_regex "^/[-a-zA-Z0-9_/]{1,100}\.[a-zA-Z0-9]{1,5}$" \
&& [HTTP::host] matches_regex "^[-a-zA-Z0-9\._]{1,100}(\:[0-9]{1,5})?$" }{
pool web_seal_pool
}
As the action is the same for either pair of conditions, you could combine them:
if { ([HTTP::uri] matches_regex "^/[-a-zA-Z0-9_/]{1,35}\.[a-zA-Z0-9]{1,5}$" \
&& [HTTP::host] matches_regex "^[-a-zA-Z0-9\._]{1,30}(\:[0-9]{1,5})?$" )
or ( [HTTP::uri] matches_regex "^/[-a-zA-Z0-9_/]{1,100}\.[a-zA-Z0-9]{1,5}$" \
&& [HTTP::host] matches_regex "^[-a-zA-Z0-9\._]{1,100}(\:[0-9]{1,5})?$") }{
pool web_seal_pool
}
Aaron