How to turn on visitor attacks logging for Nginx?

Discussion in 'ISPConfig 3 Priority Support' started by concept21, Nov 8, 2022.

  1. concept21

    concept21 Active Member

    Hello,
    I have successfully install NAXSI for Nginx to protect my site and some malicious attack tests have triggered the Naxsi firewall.
    However, there is no such malicious visit record in my /var/log/nginx/error.log .

    How do I turn on error logging of Ngnix? :rolleyes:
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Error.loggin is always active, you just looked at the wrong log file. The errors of a website are logged in the error.log of that website, which is in the log directory of that site, so it's exactly the same as in apache.
     
    concept21 likes this.
  3. concept21

    concept21 Active Member

    I have found it. Thank you.:)
     

Share This Page