wargio / naxsi

NAXSI is an open-source, high performance, low rules maintenance WAF for NGINX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unknown directive "MainRule" in /etc/nginx/naxsi_core.rules:22

saurin-tech opened this issue · comments

Hi,
I just did a fresh install of Nginx with naxsi in a docker container image based on Debian. I'm able to build the image but as soon as I run the container it exits with the message nginx: [emerg] unknown directive "MainRule" in /etc/nginx/naxsi_core.rules:22. The version of Nginx that I'm using is 1.23.2 and using the current master branch for the naxsi.

that means you either forgot to include the module or your built module was not installed, etc..

That helped, thank you!