Forum Discussion
mayur_m_150368
Apr 23, 2014Nimbostratus
How to add multiple contains (words) in irule?
How I can add two or three contains in below irule? In the same irule i want to add "documents" & "print" contains same as we written "cvapweb"
when HTTP_REQUEST { SSL::disable if { [string tolower [HTTP::host]] equals "abc.com" } { if { [HTTP::uri] contains "cvapweb" } { pool abc_9090 } else { pool abc_8080 }
- mayur_m_150368Nimbostratuswhen HTTP_REQUEST { SSL::disable if { [string tolower [HTTP::host]] equals "abc.com" } { if { [HTTP::uri] contains "cvapweb" } { pool abc_9090 } else { pool abc_8080 }
- Kevin_StewartEmployee
if { ( [string tolower [HTTP::uri]] contains "document" ) and ( [string tolower [HTTP::uri]] contains "print" ) } {
- Kevin_StewartEmployee
Try this:
when HTTP_REQUEST { I don't believe you need the SSL::disable command SSL::disable if { [string tolower [HTTP::host]] equals "abc.com" } { if { ( [string tolower [HTTP::uri]] contains "cvapweb" ) and ( [string tolower [HTTP::uri]] contains "documents" ) } { pool abc_9090 } else { pool abc_8080 } } else { what to do if the host isn't "abc.com"? } }
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