2

为什么会出现以下fail2ban regex

failregex = ^%(_apache_error_client)s ((AH001(28|30): )?File does not exist|(AH01264: )?script not found or unable to stat).*$
        ^%(_apache_error_client)s script '.*' not found or unable to stat

不匹配

[client 111.111.111.111:51008] script '/srv/www/htdocs/wwwuni/fileadmin/Dokumente/index.php' not found or unable to stat
4

1 回答 1

1

将 apache-common.conf 中 _apache_error_client 的定义更改为 _apache_error_client = [[^]]*] [(:error|\S+:\S+)]( [pid \d+])? [客户端 (:\d{1,5})?]

于 2017-08-07T09:56:45.547 回答