Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 805485 - net-analyzer/fail2ban-0.11.2 - Typo in config for apache logs
Summary: net-analyzer/fail2ban-0.11.2 - Typo in config for apache logs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-31 10:05 UTC by Melchor
Modified: 2021-08-11 01:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Melchor 2021-07-31 10:05:17 UTC
On a clean Gentoo install, apache jails on fail2ban fail saying they can't find any *error.log for them.

The default logs in apache have "_" instead of ".", so in /etc/fail2ban/paths-common.conf these lines:

apache_error_log = /var/log/apache2/*error.log
apache_access_log = /var/log/apache2/*access.log

should be like these:

apache_error_log = /var/log/apache2/*error_log
apache_access_log = /var/log/apache2/*access_log
Comment 1 Larry the Git Cow gentoo-dev 2021-08-11 01:01:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00402f66d1cdf8144ff08f446010cfdbd8d2fe4a

commit 00402f66d1cdf8144ff08f446010cfdbd8d2fe4a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-08-11 01:00:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-11 01:00:15 +0000

    net-analyzer/fail2ban: fix Apache log path
    
    Closes: https://bugs.gentoo.org/805485
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/fail2ban/fail2ban-0.11.2-r1.ebuild    | 131 +++++++++++++++++++++
 net-analyzer/fail2ban/fail2ban-9999.ebuild         |   6 +-
 .../fail2ban-0.11.2-adjust-apache-logs-paths.patch |  29 +++++
 3 files changed, 165 insertions(+), 1 deletion(-)