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?
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.