Answer the question
In order to leave comments, you need to log in
How to disable adding a specific error to the log?
Hello.
Blocked access to the site by IP: How to block an IP range in Nginx? now the log "/var/www/httpd-logs/site.error.log" is full of messages:
2018/09/03 15:13:43 [error] 9215#9215: *15918 access forbidden by rule, client: 141.8.142.114, server: site, request: "GET /page/url/ HTTP/1.1", host: "site"
Answer the question
In order to leave comments, you need to log in
In the Nginx konig, where the path of the log file is specified, add crit :
Now these errors are not recorded. The error log will only keep critical errors.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question