Nginx and Fail2ban with ISPC

Discussion in 'HOWTO-Related Questions' started by Sniperrr, Sep 1, 2018.

  1. Sniperrr

    Sniperrr New Member

    Hi, I'm using fail2ban to filter wordpress login.
    On apache servers it's easy because fail2ban scans in other_vhosts_access.log where is all vhosts traffic.

    The problem is with nginx servers. ISPC sets logging directly into /var/log/ispconfig/****.com/access.log in vhost and the main log in /var/logs/nginx/accesss.log is practically empty. Right now i have to add new log path in jail.local everytime i add new wordpress site.

    Is there some way to automate the process? Disable custom logs for vhosts in ISPC or samehow merge all logs ?
     
  2. sam117

    sam117 New Member

    i see 3 ways:
    sets fail2ban use systemd
    sets shared access log by webserver config
    use * in path to log files
     

Share This Page