fail2ban + nginx+PHP

Szépe Viktor viktor at
Tue Sep 30 16:49:26 UTC 2014

Good morning!

Is it possible to have nginx create another log entry on new  
lines/several error_log() PHP function?
Now mmultiple error_log()-s are logged as one nginx error.log line.  
Apache logs them separatly even in FastCGI mode.

Does any of you use fail2ban with nginx+PHP? I mean triggering on PHP  
error_log() messages, not on HTTP/auth, non-existent script files etc.

When setting PHP error_log directive there is NO IP address prepended  
in the log line.

Thank you!
Szépe Viktor
+36-20-4242498  sms at  skype: szepe.viktor
Budapest, XX. kerület

More information about the nginx mailing list