Добрый день,есть сервер под Ubuntu,на нем Apache .
Хотел было наладить Fail2ban для защиты апача да не выходит.Все стандартно,файл лога error.log,фильтр apache-nohome.conf,но не работает.Вот строка error.log
[Fri Jul 21 12:19:07.171469 2017] [autoindex:error] [pid 26330:tid 2945391424] [client X.X.X.X:1580] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
Как изменить стандартный конф чтоб заработало? Вот конф:
failregex =^%(_apache_error_client)s (AH00128: )?File does not exist: .*/~.
ignoreregex =
Вот выхлоп регекса
Running tests
=============
Use failregex file : /etc/fail2ban/filter.d/apache-nohome.conf
Use log file : /var/log/apache2/error.log
Results
=======
Failregex: 0 total
Ignoreregex: 0 total
Date template hits:
|- [# of hits] date format
| [85] WEEKDAY MONTH Day Hour:Minute:Second[.subsecond] Year
`-
Lines: 85 lines, 0 ignored, 0 matched, 85 missed
Missed line(s):: too many to print. Use --print-all-missed to print all 85 lines
зы sshd фильтр работает как часы ,вопрос только к апач фильтру