Skip to content

Commit

Permalink
nginx-limit-req.conf: more precise failregex (word-boundary if `<HOST…
Browse files Browse the repository at this point in the history
…>` should be non-greedy for some reasons)
  • Loading branch information
sebres committed Sep 30, 2016
1 parent 06674bb commit 9bf8985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/filter.d/nginx-limit-req.conf
Expand Up @@ -39,7 +39,7 @@ ngx_limit_req_zones = [^"]+
# failregex = ^\s*\[error\] \d+#\d+: \*\d+ limiting requests, excess: [\d\.]+ by zone "(?:%(ngx_limit_req_zones)s)", client: <HOST>, server: \S*, request: "\S+ \S+ HTTP/\d+\.\d+", host: "\S+"(, referrer: "\S+")?\s*$

# Shortly, much faster and stable version of regexp:
failregex = ^\s*\[error\] \d+#\d+: \*\d+ limiting requests, excess: [\d\.]+ by zone "(?:%(ngx_limit_req_zones)s)", client: <HOST>
failregex = ^\s*\[error\] \d+#\d+: \*\d+ limiting requests, excess: [\d\.]+ by zone "(?:%(ngx_limit_req_zones)s)", client: <HOST>,

ignoreregex =

0 comments on commit 9bf8985

Please sign in to comment.