How to disable or enable mod_security in apache

Little Alien

Member
Registered
Joined
Jul 4, 2016
Messages
38
Points
0
There are any functions on my sites run with mod_security is off or one. How can I find this mod in my Apache and enable/disable it?
 

Luxin Host

Well-known member
Registered
Joined
Jun 26, 2016
Messages
543
Points
43
There are any functions on my sites run with mod_security is off or one. How can I find this mod in my Apache and enable/disable it?
Hello @Little Alien

Just add the lines below to your .htaccess file

Code:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
 

fwh

Administrator
Staff Member
Joined
Dec 8, 2012
Messages
773
Points
63
Where is the apache config file?
You can use this command:

Code:
httpd -V
It will show you where your server versions and where apache config file is located.

For example, the output can be

.........................
-D HTTPD_ROOT="/usr/local/apache"
-D SUEXEC_BIN="/usr/local/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Hope it helps!
 
Newer Threads
Replies
6
Views
7,608
Replies
7
Views
3,631
Replies
5
Views
5,035
Replies
56
Views
22,052
Latest Threads
Replies
1
Views
542
Replies
1
Views
541
Replies
0
Views
233
Replies
0
Views
240
Recommended Threads
Replies
3
Views
4,225
Replies
29
Views
12,178
Replies
6
Views
3,489

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top