Tuesday, 4 February 2014

How to disable mod_sec for domain from linux command line ?

If mod_sec is causing problem in proper functioning of web site then we will need to disable it by placing few statements into your .htaccesss . Statement vary depending on your Apache version.



First we need to check apache version installed on your server by running below command:



root@linux [~]# httpd -v
OR
root@linux [~]# /usr/local/apache/bin/httpd -v


If you have Apache 1.x then create .htaccess file into your document root and place following statements.




SecFilterEngine Off
SecFilterScanPOST Off




If you have Apache 2.x then place following statements.




SecRuleEngine Off
SecAuditEngine Off





Note : False Or Spam reviews will be deleted, all reviews are cross checked.



No comments:

Post a Comment