Apache 403 Error Prevention

I want Apache 2.4 not to log 403 errors.

Conditional logging is described in https://httpd.apache.org/docs/2.4/logs.html , but this applies to the access log.

In httpd.conf, I tried:

ErrorLogFormat "%!403[%t] [%l] [pid %P] %F: %E: [client %a] %M"

Nope. I tried several options, but Apache still gives an error. Perhaps conditional logging is not possible in the error log?

+4
source share

Source: https://habr.com/ru/post/1672208/


All Articles