tabkad_89844
Aug 21, 2011Nimbostratus
irule for port redirection based on Domain names
I have a webserver listening on multiple ports for different urls.
I have made an irule to start with;
I have a webserver listening on multiple ports for different urls.
I have made an irule to start with;
when HTTP_REQUEST {
if {([HTTP::host] eq "abc.com") } {
pool pool_abc
} elseif {([HTTP::host] eq "xyz.com") } {
pool pool_xyz
} elseif { ([HTTP::host] contains "*.abc.com") } {
pool pool_allstar_abc
} elseif {([HTTP::host] contains "*.xyz.com") } {
pool pool_allstar_xyz
}
}
My problem is that the wildcard does not work if there is a request coming from *.abc.com. Each pool is representing different ports in my configuration. Any experts inputs will be highly appreciated.