A.K
A.K

Reputation: 31

why does fail2ban not match script not found

Why does the following 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

not match

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

Upvotes: 2

Views: 413

Answers (1)

A.K
A.K

Reputation: 31

My problem is solved after changing the definition of _apache_error_client in apache-common.conf to _apache_error_client = [[^]]*] [(:error|\S+:\S+)]( [pid \d+])? [client (:\d{1,5})?]

Upvotes: 1

Related Questions