var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Turn off mod_security for a site
How can turn off mod_security rules just for a website?
It depends on the Mod Security version you have on the server. If it's modsec 1, then you can add the below lines in the .htaccess file of your domain:
If it's modsec 2, you can add the following lines in the VirtualHost entry of the domain in the Apache configuration file:
Make sure you restart the httpd service once you add the modsec2 rule in the apache configuration.
Thank you very much.
Is it posible with .htaccess too?
yes, Add those entry to the .htaccess file and it will skip the mod-security rules for only that domain.
It's better to just turn off the one specific rule that is giving problems, rather than turning mod_security off altogether which is kind of leaving the front door wide open for problems down the track ...
Yes.. it is better to turn off specific rules causing the problem rather than disabling mod_security server or domain wide..
You can manage most of the main mod_security settings from a .htaccess file, so you can control it down to per-domain, per-directory and per file basis by switching off individuals rules.
Adding mod security rules to htaccess may be better because when you migrate the account to another server, the setting remains at the destination as well. Also you can turn it off or on anytime without requiring the help of your host if you are on shared hosting.
You can disable a single rule as follows.
By darkeden in forum Web Design and Content
Last Post: 05-09-2009, 04:33 PM
By TonyB in forum Hosting Security and Technology
Last Post: 05-01-2008, 09:24 AM
By vietkool in forum Hosting Software and Control Panels
Last Post: 09-07-2005, 03:09 PM
By RoboHostCo in forum Web Site Reviews
Last Post: 10-13-2004, 08:36 PM
By nesnas in forum Web Hosting
Last Post: 12-09-2001, 02:15 PM