Forum Discussion
youssef1
Cumulonimbus
May 23, 2018Re: can i combine 2 irules together.
Hi,
you can already tests this irule:
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/my/uri1" || [HTTP::uri] starts_with "/my/uri2") && [class match [HTTP::header iv-remote-address] eq "qa" ] } {
condition (uri2 or uri2) and specific IP
} elseif { ([HTTP::uri] starts_with "/my/uri1") && [HTTP::header exists "test"] && [HTTP::header "test"] eq "myValue" } {
condition (uri1) and specific header name + specific header value
} else {
default
}
}
let me now if it's what's you need and keep me update if you need additional info.
Regards
No RepliesBe the first to reply
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