Forum Discussion
Ian_Amos_37833
Nimbostratus
Apr 27, 2007Using [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...
Ian_Amos_37833
Nimbostratus
Apr 27, 2007Thanks for the help! i'm sure I tried 'and' but think I had ()'s around each arguement, which it doesn't like..
My next problem is with 'elseif'
I'm using:
when HTTP_REQUEST {
if {[HTTP::host] starts_with "uat" && [HTTP::uri] starts_with "/static/"}{
HTTP::respond <..etc..>
} elseif { [HTTP::host] starts_with "uat" && [HTTP::uri] starts_with "/data/"}{
HTTP::respond <..different etc..>
}
}
I know i've now got the '&&' bit working, as with just the one IF statement, everything is fine. But I can't get anything after the 'elseif' to work..
Thanks again for your help!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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