Net_Admin_86160
Oct 24, 2012Nimbostratus
Case Issue
Hello,
In just this section(first elseif below) of the irule I have the "and" condition. But somehow in this section ignore case is not working.
elseif {([HTTP::host] contains "domain1.mydomain.com" or [HTTP::host] contains "domain2.mydomain.com" or [HTTP::host] contains "domain3.mydomain.com" or [HTTP::host] contains "domain4.mydomain.com" or [HTTP::host] contains "domain5.mydomain.com" or [HTTP::host] contains "domain6.mydomain.com") and ([string tolower [HTTP::uri]] contains "/preference/" or [string tolower [HTTP::uri]] contains "/mass/" or [string tolower [HTTP::uri]] contains "/ge/" or [string tolower [HTTP::uri]] contains "/et/" or [string tolower [HTTP::uri]] contains "/cpro/" or [string tolower [HTTP::uri]] contains "/clb/" or [string tolower [HTTP::uri]] contains "/autm/" or [string tolower [HTTP::uri]] contains "/airb/" or [string tolower [HTTP::uri]] contains "/amt/" or [string tolower [HTTP::uri]] contains "/gsm/" or [string tolower [HTTP::uri]] contains "/avio/" or [string tolower [HTTP::uri]] contains "/iif/" or [string tolower [HTTP::uri]] contains "/fg/" or [string tolower [HTTP::uri]] contains "/cpd/" or [string tolower [HTTP::uri]] contains "/pten/" or [string tolower [HTTP::uri]] contains "/ooh/" or [string tolower [HTTP::uri]] contains "/yg/" or [string tolower [HTTP::uri]] contains "/rpn/" or [string tolower [HTTP::uri]] contains "/fms/" or [string tolower [HTTP::uri]] contains "/ems/" or [string tolower [HTTP::uri]] contains "/kbdn/" or [string tolower [HTTP::uri]] contains "/qur/" or [string tolower [HTTP::uri]] contains "/fl/" or [string tolower [HTTP::uri]] contains "/sdce/" or [string tolower [HTTP::uri]] contains "/acme/" or [string tolower [HTTP::uri]] contains "/hwlm/" or [string tolower [HTTP::uri]] contains "/acon/" or [string tolower [HTTP::uri]] contains "/stec/" or [string tolower [HTTP::uri]] contains "/sst/" or [string tolower [HTTP::uri]] contains "/secu/" or [string tolower [HTTP::uri]] contains "/conc/" or [string tolower [HTTP::uri]] contains "/evt/" or [string tolower [HTTP::uri]] contains "/utp/" or [string tolower [HTTP::uri]] contains "/pvm/" or [string tolower [HTTP::uri]] contains "/lepn/" or [string tolower [HTTP::uri]] contains "/rdb/" or [string tolower [HTTP::uri]] contains "/let/" or [string tolower [HTTP::uri]] contains "/edc/" or [string tolower [HTTP::uri]] contains "/mae/" or [string tolower [HTTP::uri]] contains "/wmw/" or [string tolower [HTTP::uri]] contains "/qp/" )} {
use pool WEBFORMS
} elseif {[string tolower [HTTP::uri]] starts_with "/webservices/rest/brand/"} {
if {[string tolower [HTTP::uri]] contains "/dataqueue"} {
HTTP::redirect "]"
}
elseif {[string tolower [HTTP::uri]] contains "/comp"} {
HTTP::redirect "]"
} else {
HTTP::redirect "]"
}
}
Any help with this is appreciated. If there is a better way to write this ..please let me know .. will welcome any suggestions to improve.
Thanks