Where do nginx error logs end up (in ISPCFG3) ?

Discussion in 'General' started by Ovidiu, Oct 4, 2015.

  1. Ovidiu

    Ovidiu Active Member

    I'm trying to trace a particular error and searched for it forever inside
    only to later find it inside
    so I was wondering how this works, are the error logs for each site always separated?

    I'm trying to do this:
    namely let nginx flag an access if it is by a bot then refuse the connection with a 444 server code and log it.
    This all works fine but I now would like to have fail2ban monitor /var/logs/nginx/error.log and block those IPs so if they are all logged inside their own log file and not in a global one, how can I fix this, any suggestions?
  2. Ovidiu

    Ovidiu Active Member

    Figured out I don't need an aggregate nginx log file, fail2ban can uses wildcards too like this:

    logpath = /var/log/ispconfig/httpd/*/access.log

Share This Page