Forum Discussion
If not path1 or path2 irule issue
Figured it out. For some reason, the nested 'if' was causing an issue. Combining into one statement works:
when HTTP_REQUEST{ switch -glob -- [string tolower [HTTP::host]] { "host.domain.com"{ if { ! ([class match [IP::client_addr] equals private_net ]) && ! ([string tolower [HTTP::path]] starts_with "/carinfoapi_dev" || [string tolower [HTTP::path]] starts_with "/carinfoapi_usertest" ) }{ reject } else { pool host.domain.com_pool } return }}}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
