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

Documentation error on "load_module" #495

Closed HanXHX closed 4 years ago

HanXHX commented 4 years ago

Hi,

I found a small error on your documentation (https://github.com/nbs-system/naxsi/wiki/naxsi-compile).

On Nginx doc, load_module must be set on main context, not in http block.

Should be:

usr@008885ac189c:~$ cat /etc/nginx/nginx.conf
...
load_module /etc/nginx/modules/ngx_http_naxsi_module.so; # load naxsi

http {
    include /etc/nginx/naxsi_core.rules; # load naxsi core rules
    ...
}
...

Kind regards,

EM

wargio commented 4 years ago

Thanks, for that. i've fixed it.