irule clarification
I've generated an irule to do URI processing. Even though it appear to work I don't fully understand how it's processing the rule. Here is the rule:
when HTTP_REQUEST { set path [HTTP::path] if { $path starts_with "/engine" } { pool pool7500 return } }
These are the items I don't understand:
when HTTP_REQUEST - Since i'm doing SSL offloading would this not work? Or does the irule process after the packets are decrypted? set path [HTTP::path] - Simply a variable right? What does the HTTP::path actual take into consideration? return - Unsure what this means? Is it a break? Meaning if there were multiple rules it would stop processing at this point?
Thanks! Josh S.
Since i'm doing SSL offloading would this not work?
[answer] Yes, it is work, if your virtual server is configured with correct clients profile.
Or does the irule process after the packets are decrypted?
[answer] Yes, it process after decryption.
set path [HTTP::path] - Simply a variable right? What does the HTTP::path actual take into consideration?
[answer] please check the online API document about this method, it contains good example https://devcentral.f5.com/wiki/iRules.HTTP__path.ashx
return - Unsure what this means? Is it a break?
[answer] in your sample rule code, it is not necessary, return just mean finish execute this irule event.
Meaning if there were multiple rules it would stop processing at this point?
[answer] other irule will still be executed.