Forum Discussion

Re: 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