Forum Discussion
27 Replies
Sort By
- The_BhattmanNimbostratus
when HTTP_REQUEST { if { [HTTP::uri] ends_with ".jpg" } { HTTP::redirect "https://psp-portal.com/portal/server.pt" else { pool SHAREPOINT } }
when HTTP_REQUEST { if { [HTTP::uri] ends_with $::portal_redirect_class } { HTTP::redirect "https://psp-portal.com/portal/server.pt" else { pool SHAREPOINT } }
- jtostado_47719NimbostratusI got error with both!
- The_BhattmanNimbostratusThere was syntax error on mine
when HTTP_REQUEST { if { [HTTP::uri] ends_with ".jpg" } { HTTP::redirect "https://psp-portal.com/portal/server.pt" } else { pool SHAREPOINT } }
when HTTP_REQUEST { if { [HTTP::uri] ends_with $::portal_redirect_class } { HTTP::redirect "https://psp-portal.com/portal/server.pt" } else { pool SHAREPOINT } }
- jtostado_47719NimbostratusThat did the trick. Thanks a bunch.
- Sams_88783NimbostratusPlease help me to convert irule
- The_BhattmanNimbostratus
. . . else if { ([HTTP::uri] starts_with "/nos8") and !([HTTP::header "SSLClientCertStatus"] eq "OK" ) } { HTTP::redirect "https://syst.com/nos8/" . . .
- Sams_88783NimbostratusThanks Battman.It worked.
- Sams_88783NimbostratusPlease help me with this also...i tired but its giving me error
- The_BhattmanNimbostratusHi Sumod,
when HTTP_REQUEST { if {[IP::addr[IP::client_addr] equals 10.1.1.1] } { if { [string tolower [HTTP::uri]] contains "memberelegibility" } { pool POOL_230_2 } else { pool POOL_230_1 } } else if {[IP::add [IP::client_addr] eq 10.1.1.8] } { pool POOL_230_ALL } else { switch [HTTP::method] { "GET" { log local0. "GET method used" } "POST" { log local0. "POST method used"} default { log local0. "Unexpected method used" } } switch [string tolower [HTTP::uri]] { "*membereligibility* { pool POOL_230_2 log local0. "Eligibility request made." } "*images" { pool POOL_230_ALL log local0. "Image request Made" } default { pool pool_230_1 log local0. "Generic Request Made" } } } }
- Sams_88783NimbostratusI dont think so...because when i checked in Classes option i had found an entry "MemberEligibility" "String" some URL's mentioned over there.