owasp-modsecurity / ModSecurity-nginx

ModSecurity v3 Nginx Connector
Apache License 2.0
1.59k stars 282 forks source link

error nginx-1.21.5 arguments #266

Closed DonXirus closed 2 years ago

DonXirus commented 2 years ago

checking for getaddrinfo() ... found configuring additional modules adding module in /home/abuild/rpmbuild/BUILD/nginx-1.21.5/_passenger_source_code/src/nginx_module ./configure: error: no /home/abuild/rpmbuild/BUILD/nginx-1.21.5/_passenger_source_code/src/nginx_module/config was found

when doing

cd /usr/local/src/nginx-1.21.5 ./configure ... -I/home/abuild/rpmbuild/BUILD/nginx-1.21.5/_passenger_source_code/src/nginx_module ... --add-dynamic-module=../ModSecurity-nginx any solution and Thanks for the best security project ever

DonXirus commented 2 years ago

Tnaks i fixed it basically i need to edit the "/home/abuild/rpmbuild/BUILD/nginx-1.21.5/_passenger_source_code/src/nginx_module" to /opt/cpanel/ea-ruby27/src/passenger-release-6.0.12/src/nginx_module" and it worked