Forum Discussion
Chris_Miller
Sep 20, 2010Altostratus
After reading the wiki for LB_FAILEd, it doesn't appear that HTTP::uri is a valid command.
http://devcentral.f5.com/wiki/default.aspx/iRules/lb_failed
You might have to set a variable from another event if it doesn't compile.
Something like this:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/gwtwb" } {
set gwtwb 1 }}
when LB_FAILED {
if { $gwtwb eq 1 } {
HTTP::fallback "http://someserver.mysite.com/F5/GenericErrorPage.htm" }
else { HTTP::respond 400 } }