diff --git a/config/filter.d/nginx-http-errors.conf b/config/filter.d/nginx-http-errors.conf new file mode 100644 index 00000000..33af0072 --- /dev/null +++ b/config/filter.d/nginx-http-errors.conf @@ -0,0 +1,7 @@ +# Nginx client and server errors (HTTP 4xx or 5xx) +# +# Author: David Cook +# Inspired by https://serverfault.com/a/849859/959055 + +[Definition] +failregex = -.*"(GET|POST|HEAD).*HTTP.*" [4-5][0-9][0-9]