Current time: 11-19-2024, 08:31 AM Hello There, Guest! (LoginRegister)


Post Reply 
How i disable mod security for a domain or dir??
Author Message
ryo hazuky Offline
Junior Member
*

Posts: 14
Joined: Jul 2008
Reputation: 0
Post: #1
How i disable mod security for a domain or dir??
I installed mod-security by howtos on this forum, but i have problem with some sites and specialy roundcube webmail, how i disable mod-security for roundcube??..thanks
03-28-2009 02:53 AM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #2
RE: How i disable mod security for a domain or dir??
http://www.isp-control.net/forum/thread-...l#pid46133
03-28-2009 11:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ryo hazuky Offline
Junior Member
*

Posts: 14
Joined: Jul 2008
Reputation: 0
Post: #3
RE: How i disable mod security for a domain or dir??
Disable and enable it's so easy, i want to disable a one domain or specific dir...
03-30-2009 10:11 PM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #4
RE: How i disable mod security for a domain or dir??
You need to create file. Htaccess to disable mod_security

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
03-30-2009 10:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ryo hazuky Offline
Junior Member
*

Posts: 14
Joined: Jul 2008
Reputation: 0
Post: #5
RE: How i disable mod security for a domain or dir??
(03-30-2009 10:38 PM)kurgans Wrote:  You need to create file. Htaccess to disable mod_security

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

I tested this code on roundcube .htaccess file and not resolve the problem.
03-30-2009 11:18 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: How i disable mod security for a domain or dir??
It didn't work in the roundcube case because it is running under the panel's VirtualHost which prevents overriding any options through .htaccess:
/etc/apache2/sites-enabled/00_master.conf
Code:
...
    <Directory /var/www/ispcp/gui>
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride None
...
Thus, you can either:
  1. 1) Change to AllowOverride All so the .htaccess file becomes actually effective.
  2. 2) Add the <IfModule mod_security...</IfModule> block into the above <Directory /var/www/ispcp/gui>...</Directory> block.
03-31-2009 12:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ryo hazuky Offline
Junior Member
*

Posts: 14
Joined: Jul 2008
Reputation: 0
Post: #7
RE: How i disable mod security for a domain or dir??
(03-31-2009 12:23 AM)kilburn Wrote:  It didn't work in the roundcube case because it is running under the panel's VirtualHost which prevents overriding any options through .htaccess:
/etc/apache2/sites-enabled/00_master.conf
Code:
...
    <Directory /var/www/ispcp/gui>
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride None
...
Thus, you can either:
  1. 1) Change to AllowOverride All so the .htaccess file becomes actually effective.
  2. 2) Add the <IfModule mod_security...</IfModule> block into the above <Directory /var/www/ispcp/gui>...</Directory> block.

It's Work, the correct sintax to disable for webmail is
<Directory /var/www/ispcp/gui>
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Maybe mod_security is responsable to error 500 on ISPCP to. Mod_sec blocks a script to run and cause timout on the scripts to creates domains, emails....maybe...

sorry for my english...i am from brazil
04-04-2009 11:36 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)