I have a question about the notation of iRules (HTTP_RESPONSE)
Always thank you for your help. I have a question about the notation of iRules.
There is iRules with HTTP_RESPONSE as below.
when HTTP_RESPONSE { if {[HTTP::status] matches_glob {[4][0][1-9]} } { HTTP::redirect "; } if {[HTTP::status] matches_glob {[4][1-9][0-9]} } { HTTP::redirect "; } if {[HTTP::status] matches_glob {[5][0-9][0-9]} } { HTTP::redirect "; } }
If left unchanged, all errors will be redirected, but it will be redirected even during application development, which will hinder development work.
When "X - AAA - BBB - RESPONSE" is included in the HTTP header, we do not want to redirect but we want to return error to the terminal which accessed as it is.
It would be greatly appreciated if you could tell me how to write iRules in this case in Japanese.