Forum Discussion
Mark_2014_16996
Sep 16, 2014Nimbostratus
How to combine 2 iRules
I need help combining 2 iRules:
iRule 1:
when HTTP_REQUEST { if { [HTTP::host] equals "www.webpage.com" } { if { [HTTP::path] starts_with "/access/" } { log local0. "host=[HTTP::host] path=[HTTP:...
Arie
Sep 16, 2014Altostratus
You could simply move the if-statement from the second rule into the first rule. However, there's a non-conditional "reject" command in the first rule that will reject all requests. Is this intentional?
rule 1:
when HTTP_REQUEST {
if { [HTTP::host] equals "www.webpage.com" } {
if { [HTTP::path] starts_with "/access/" } {
log local0. "host=[HTTP::host] path=[HTTP::path] action=allow" return
}
}
log local0. "host=[HTTP::host] path=[HTTP::path] action=reject"
reject
}
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