wargio / naxsi

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

Naxsi module version mismatch with NGINX version #127

Closed hengyinice closed 8 months ago

hengyinice commented 9 months ago

What is the highest version of NGINX that naxsi-1.3 can support? I tried to install naxsi on NGINX-1.22 reporting version error The error is as follows: [emerg] 10#10: module "/usr/share/nginx/modules/ngx_http_naxsi_module.so" version 1018000 instead of 1022001 in /etc/nginx/modules-enabled/50-mod-http-naxsi.conf:1

wargio commented 9 months ago

don't use naxsi 1.3, use the latest one (1.6).

Your issue seems related to an old version of naxsi trying to be executed on a newer version of NGINX.

You need to build the module for the correct version of nginx.