Ian_Amos_37833
Apr 27, 2007Nimbostratus
Using [HTTP::hostname] & [HTTP::uri]..
Afternoon all,
there is probably a really easy solution for this, but i've not had any F5 training, and have run out of ideas..
To try and explain the situation;
there is a website www.example.com
there is also a UAT copy of the site uat.example.com
there is static content ..com/static/
and databases etc ..com/data/
each of the above are in their own Pools, but are represented by the same Public IP and virtual server.
So far I have an iRule to say
when HTTP_REQUEST {
if { ([HTTP::host] starts_with "uat") } {
HTTP::respond 200 content "<...test...>"
}
}
which works when I go to uat.example.com
How can I incorporate an "AND" statement in the iRule? i.e if HTTP::host starts_with "uat" AND HTTP::uri starts_with "/static/" etc.
I've tried using & but that doesn't work.. what am I doing wrong??
Thanks in advance for your help!