Thomas_Broeste_
Nov 16, 2006Nimbostratus
Wildcard
Hi
I have the following problem
I've made an Irule looking like this
when HTTP_REQUEST {
if { [HTTP::host] contains "domain.dk" } {
HTTP::host
pool pool_PresDK
log local0. "domain.dk...."
}
elseif { [HTTP::host] contains "domain.no" } {
HTTP::host
pool pool_PresNO
log local0. "domain.no...."
}
elseif {[HTTP::host] contains "domain.se"} {
HTTP::host
pool pool_PresSE
log local0. "domain.se...."
Above is working fine. All domain is pointing at the same IP address. I now have a series of other domains that point to the same IP adress, but needs to go to the same pool. I need some kind of wildcard so that every hostname not matching the above rule will be sent to the same pool. See below
}
elseif {[HTTP::host] contains "%any domain but not above%"} {
HTTP::host
pool pool_PresDK
log local0. "domain.dk...."
}
}
Anybode got any idea??
best regards
Thomas