Arley_6164
Jun 29, 2009Nimbostratus
One Virtual Server on All Ports
I was trying to consolidade some of our big-ip deployments and came with an ideia for some websites to aggregate them on one single Virtual Server. For that matter I'd set up a VS listening on *all ports* and build my irule as follow:
if {[TCP::local_port] equals 80} {
switch -glob [string tolower [HTTP::host]] {
"foo.com"{ pool foo }
default {
discard
}
}
}
elseif {[TCP::local_port] equals 443} {
switch -glob [string tolower [HTTP::host]] {
"secure.foo.com"{ pool foo_secure }
default {
discard
}
}
}
else {
[HTTP::redirect "http://www.microsoft.com"]
}
Basically debugs shows nothing, it seems that the Virtual Server doesnt even comes up when *All Ports* option enabled, no traffic reaches the irule.
Any ideas?
Cheers,
Arley