Answer the question
In order to leave comments, you need to log in
How to disable mod_security in NGINX?
There was a problem with the site. I contacted the CMS developer. He advised to disable mod_security .
I tried to insert the code in .htaccess:
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
Answer the question
In order to leave comments, you need to log in
If you actually have modsecurity installed under nginx, then:
https://www.trustwave.com/Resources/SpiderLabs-Blo...
You can find out if it is installed using nginx -V
Do I even have it?
There is no mod_security in nginx, and nginx does not process .htaccess at all. So if the conversation is only about him, then the problem is somewhere else.
If there is apache behind nginx, then apache2ctl -M (or apachectl, depending on which distribution you have) will show which modules you have connected.
And if mod_security is there, but it is not turned off via .htaccess, then maybe you just do not have processing enabled (AllowOverride).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question