nvv_109301
Jul 26, 2010Nimbostratus
Catching http responses from SSL session
I have several iRules in place to decide which server pool to use as well as force SSL using redirects to https. I also want to catch 404 and 500 responses and redirect to another site for a polite message. To that end, I have the following code:
when HTTP_RESPONSE
{ if { ([HTTP::status] == 404) or ([HTTP::status] == 500)}
{ HTTP::redirect "http://polite_message.com/index.htm" } }
While this code works correctly for 404/500's found within an http session, the code doesn't seem to catch the http responses from our server farm in an https session. The communication behind our LTM is all port 80 so I was expecting the iRule to be able to see the HTTP::status before the responses went back through the LTM to the user. Apparently, that's not the case. Can someone shed light on how to catch these status codes in an https session?
Thank you,
Nathan