Hi folks!
Long time fan, first time caller!
I am in the middle of trying to migrate away from an F5 BigIP machine to an nginx solution.
Currently I'm stuck with the following irule:
if { [HTTP::status] contains "40" and ( [matchclass $uri ends_with $::images] )} {
log local0. "123 images redirect for status code [HTTP::status] to $uri"
HTTP::redirect "$protocol//123.domain.com/$uri"
This states the following:
- if an HTTP 40x status is returned AND the uri ends with 'images' then redirect to 123.domain.com/$uri
Any help/insight would be appreciated.
Thanks,
me