eirikn
Mar 30, 2015Nimbostratus
Stop processing iRule(s) if condition is met.
Hi,
Im hosting a site with two virtual servers http and https.
My http virtual server is just a set of rules that redirects to the https virtual server.
One visitor of my site needs to access some parts in http, and i have made a iRule that distinguish the traffic and sends it directly to the pool. No redirection. :
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] contains "/globalassets/global/") and [IP::remote_addr] contains "XXX.XXX" } {
pool dummy_web_pool
log 10.X.X.X local0.info "http Client Connected, IP: [IP::client_addr]"
return
}
I can from my syslog see that the iRule hits, but i still get a 301 redirect response. Even though this iRule is top priority, it seems like it continues to read my other lower priority https redirection irules.
How can bypass my other iRules if the condition is met?