2013-06-11 18:56:25 +00:00
# Generic configuration items (to be used as interpolations) in other
2013-10-30 13:02:59 +00:00
# apache filters.
2013-06-11 18:56:25 +00:00
[INCLUDES]
2017-07-12 09:25:58 +00:00
before = common.conf
2013-06-11 18:56:25 +00:00
# Load customizations if any available
after = apache-common.local
[DEFAULT]
2017-07-12 09:25:58 +00:00
# Apache logging mode:
# all - universal prefix (logfile, syslog)
# logfile - logfile only
# syslog - syslog only
# Use `filter = apache-auth[logging=syslog]` to get more precise regex if apache logs into syslog (ErrorLog syslog).
# Use `filter = apache-auth[logging=all]` to get universal regex matches both logging variants.
logging = logfile
# Apache logging prefixes (date-pattern prefix, server, process etc.):
apache-prefix-syslog = %(__prefix_line)s
apache-prefix-logfile = \[\]\s
apache-prefix-all = (?:%(apache-prefix-logfile)s|%(apache-prefix-syslog)s)?
2017-07-12 09:59:02 +00:00
# Setting for __prefix_line (only `logging=syslog`):
_daemon = (?:apache\d*|httpd(?:/\w+)?)
2017-07-12 09:25:58 +00:00
apache-prefix = <apache-prefix-<logging>>
2017-02-17 07:11:33 +00:00
2019-10-18 09:18:34 +00:00
apache-pref-ignore =
2024-03-15 21:36:40 +00:00
_apache_error_client = <apache-prefix>\[(:?error|<apache-pref-ignore>\S+:\S+)\]( \[pid \d+(:\S+ \d+)?\])? \[(?:client|remote) <HOST>(:\d{1,5})?\]
2013-10-30 13:02:59 +00:00
2016-10-05 17:34:21 +00:00
datepattern = {^LN-BEG}
2013-06-11 18:56:25 +00:00
# Common prefix for [error] apache messages which also would include <HOST>
2013-06-28 13:34:12 +00:00
# Depending on the version it could be
# 2.2: [Sat Jun 01 11:23:08 2013] [error] [client 1.2.3.4]
# 2.4: [Thu Jun 27 11:55:44.569531 2013] [core:info] [pid 4101:tid 2992634688] [client 1.2.3.4:46652]
2013-12-29 05:29:59 +00:00
# 2.4 (perfork): [Mon Dec 23 07:49:01.981912 2013] [:error] [pid 3790] [client 204.232.202.107:46301] script '/var/www/timthumb.php' not found or unable to
2013-10-30 13:02:59 +00:00
#
2013-06-28 13:34:12 +00:00
# Reference: https://github.com/fail2ban/fail2ban/issues/268
2013-10-30 13:02:59 +00:00
#
# Author: Yaroslav Halchenko