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 }
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 }
if { ( [string tolower [HTTP::uri]] contains "document" ) and ( [string tolower [HTTP::uri]] contains "print" ) } {
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"?
}
}