nbs-system / naxsi

NAXSI is an open-source, high performance, low rules maintenance WAF for NGINX
GNU General Public License v3.0
4.8k stars 606 forks source link

Why do I compile nginx with naxsi or I will prompt the MainRule directive? #439

Closed youzizzz closed 6 years ago

youzizzz commented 6 years ago

My machine is ubuntu16.04 Nginx module information screenshots are as follows image Nginx config information screenshots are as follows image The naxsi_core.rules configuration is exactly the same as the example you gave. But the startup result is image Excuse me, why is this? thank you

jvoisin commented 6 years ago

Have you checked the relevant documentation? Also, are you sure that naisi_core_rules doesn't contain a typo?

On a side note, please avoid using screenshot for texts: they do not permit text selection, aren't great to zoom on, and aren't readable by blind people.

youzizzz commented 6 years ago

Ok, verified, it’s true that my personal negligence caused this problem. The file name was written as naisi..., sorry, thank you for your answer.