Forum Discussion
Robert_47833
Apr 16, 2012Altostratus
something interesting in if {if } else
irule
if {($uri matches "/cjj" or $uri matches "/cjj/") } {
if { [HTTP::host] ends_with ".co.uk" } {
HTTP::redirect "http://[HTTP::host]/error.html"
return
}
}
...
hooleylist
Apr 16, 2012Cirrostratus
Hi Jucao,
www.ss.com/cjj would match the first if but not the second. So it wouldn't hit the pool statement. If you want to use that pool for www.ss.com/cjj, you could try this:
if {($uri matches "/cjj" or $uri matches "/cjj/") } {
if { [HTTP::host] ends_with ".co.uk" } {
HTTP::redirect "http://[HTTP::host]/error.html"
return
} else {
pool xxxx
}
} else {
pool xxxx
}
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects