Mod secure installation problem

eka

Verified User
Joined
Apr 9, 2015
Messages
22
Hello I was trying to install Mod_Secure with Nginx on my server and getting an error

Mod_security is now enabled in Nginx
ModSecurity has been installed successfully.
nginx: [emerg] unknown directive "ModSecurityEnabled" in /etc/nginx/nginx-modsecurity-enable.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
Installing Comodo Rule Set for ModSecurity...
Updating to latest CWAF client version
current version is up to date
update process finished!
Installation of ModSecurity Rule Set has been finished.
nginx: [emerg] unknown directive "ModSecurityEnabled" in /etc/nginx/nginx-modsecurity-enable.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
Done!

file /etc/nginx/nginx-modsecurity-enable.conf has in it:
ModSecurityEnabled on;
ModSecurityConfig /etc/nginx/nginx-modsecurity.conf;

If You need any extra information just tell me i will try to get it.
 
Back
Top