Forum Discussion
Demonio_21719
Nimbostratus
Oct 09, 2015Can't use non-numeric string as operand of "&&" in rule
Hello. When this irule runs the following error occurs:
/Common/SSL_Test - can't use non-numeric string as operand of "&&" while executing "if { $renegtried == 0 and [SSL::cert count] == 0 and (...
Demonio_21719
Nimbostratus
Oct 09, 2015* tHANK YOU!! * And if I want to add any condition in the HTTP_REQUEST?, for example (SOME "ELSE IF and * ELSE"): * Do I have to put an if before the switch? * For example:
- when HTTP_REQUEST {
- switch [HTTP::uri] {
- "/extern/test.jsp" -
- "/SO/services/dat" -
- "/Ex/services/pay" {
- if { !$renegtried && [SSL::cert count] == 0 } {
- log local0. "[IP::client_addr]:[TCP::client_port]: A log entry"
- HTTP::collect
- SSL::cert mode request
- SSL::renegotiate
- pool TEST-BACKUP <---- PRIORITY POOL
- }
- }
- }
- }
TO ADD:
- } elseif {
- ([HTTP::host] equals www.test.es } {
- pool SECOND_POOL_SSL <---- SECOND POOL
- SSL::enable serverside
- log local0. "WITH SECOND POOL"
- } else {
- pool THIRD-POOL-SSL <---- THIRD POOL
- SSL::disable serverside
- log local0. "WITH THIRD POOL POOL"
- }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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