Want to use fail2ban for apache2, but which config file used?

Discussion in 'General' started by Shyciii, Oct 12, 2022.

  1. Shyciii

    Shyciii Member

    I use ISPConfig 3 version, and i want use fail2ban for apache defense, but which log file does apache under ispconfig use?
    I found these:
    - /var/log/apache2/access.log
    - /var/log/apache2/other_vhosts_access.log
    - /var/log/ispconfig/httpd/webpage.com/access.log
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That depens on the Operating System.
    I run on Debian GNU/Linux, and use the stock fail2ban filters for apache. I have not modified the log file setting.
     
  3. Shyciii

    Shyciii Member

    I use Debian. What the default log file in ispconfig?
    As I see it, there are entries in all three too:
    - /var/log/apache2/access.log
    - /var/log/apache2/other_vhosts_access.log
    - /var/log/ispconfig/httpd/webpage.com/access.log
     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    First of all what is the goal you're trying to achieve?
    /var/log/apache2/access.log for example does not contain the authlog for any client website on the host. The logs for each website are stores in the /var/www/clients/clientXXX/webXXX/log path

    without testing this should work in the jail conf:
    /var/www/clients/client*/web*/log/access.log
     
  5. Shyciii

    Shyciii Member

    Thx, working like a charm!
     

Share This Page