unknown directive "MainRule" in /etc/nginx/naxsi_core.rules:22
saurin-tech opened this issue · comments
saurin-tech commented
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.
Giovanni commented
that means you either forgot to include the module or your built module was not installed, etc..
saurin-tech commented
That helped, thank you!