Remove and Uninstall or Disable ModSecurity (mod_security)删除和卸载或禁用modsecurity ( mod_security )
ModSecurity is an open source embeddable web application firewall, or intrusion detection and prevention engine for web applications. modsecurity是一个开放源代码嵌入Web应用程序防火墙,或者入侵检测和防护引擎的Web应用程式。 ModSecurity provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring and real-time analysis with no changes to existing infrastructure, by operating as an Apache Web server module mod_security or standalone, and thus increase web application security. modsecurity提供保护,从一系列攻击Web应用程序,并允许HTTP流量的监测和实时分析与没有改变现有的基础设施,由经营作为一个Apache Web服务器模块mod_security或独立,从而增加Web应用程序安全性。 However, misconfigured or overly strict rule sets, ModSecurity may cause your website to return various errors such as HTTP 403 Forbidden error or access denied error, login problems, or HTTP 412 Precondition Failed error, or HTTP 406 Not Acceptable error and other false positive symptoms.然而,错误或过于严格的规则集, modsecurity可能会导致您的网站返回的各种错误,如HTTP 403禁止错误或拒绝访问错误,登录问题,或HTTP 412前提条件失败的错误,或HTTP 406不接受错误和其他假阳性症状。
To make matter worse, the configuration of ModSecurity rules and filters have to be done manually.使问题更糟的是,配置modsecurity规则和过滤器都必须做手动。 Although there are free predefined certified rule set which can be used with ModSecurity out of the box, however the rule sets may be not suitable for each and every environment and may interfere with the operation of websites or blogs, and customizing and modifying the rules may be too sophisticated or complicated for some users.虽然有免费预定义的认证规则集,可用于与modsecurity出来的框,不过,规则集,可能并不适合每一个环境可能会干扰的运作,网站或网志,和定制和修改规则可能过于复杂或较复杂的部分用户。 And for some websites that hosted on shared hosting service, the mod_security may be enable by default without options.和一些网站上托管的共同托管服务, mod_security可能使默认情况下没有选择。 So in this case, the best solution or workaround for mod security related issues is to disable mod_security filtering and rules.因此,在这种情况下,最好的解决方法或其他可行方案为按付款当日价格计算与安全相关的问题是要禁用mod_security过滤和规则。
If you’re using Apache web server (which mostly do), mod_security can be disabled by adding a specific in .htaccess file.如果您使用的Apache Web服务器(其中大多是这样做) , mod_security可以禁用添加一个具体的。 htaccess的文件。 Locate the .htaccess file in Apache web root directory (public_html or /var/www/ or others), if it does not exist, create a new file named .htaccess, and add in the following code:找到。 htaccess的文件中的Apache Web根目录( public_html或/ var /万维网/或其他人) ,如果它不存在,创建一个新文件,名为。 htaccess的,并添加在下面的代码:
SecFilterEngine Off secfilterengine小康
SecFilterScanPOST Off secfilterscanpost小康
The above entries in the .htaccess will disable the ModSecurity (mod_security) module for the domain.上述参赛作品。 htaccess的将禁用modsecurity ( mod_security )模块为域。
Uninstallation of ModSecurity (mod_security) from Apache module 卸载modsecurity ( mod_security )由Apache模块
The easiest way to remove and uninstall mod_security is to comment out or delete the related mod_security entries from httpd.conf Apache configuration file.最简单的方法,以消除和卸载mod_security是注释掉或删除相关mod_security参赛作品从httpd.conf中的Apache配置文件。 The lines that should be removed include:字里行间,应予删除,包括:
AddModule mod_security.c addmodule mod_security.c
LoadModule security_module modules/mod_security.so loadmodule security_module模组/ mod_security.so
Include “/usr/local/apache/conf/modsec.conf” This line may be different depending on what variant of Linux or Unix you used and the installation location包括“在/ usr / local /阿帕奇/设置/ modsec.conf ” 这条线可能有所不同,视乎什么变的Linux或Unix您使用和安装位置
Save the httpd.conf and restart the Apache.保存httpd.conf文件并重新启动Apache的。 ModSecurity will not be loaded and as if uninstalled. modsecurity将不会被载入和作为,如果卸载。
If you’re using WebHost Manager (WHM), uninstallation is even simpler.如果您使用的网页主机服务经理(的WHM ) ,卸载是更简单。 Just scroll to cPanel section, and click on Addon Modules.刚才翻阅到的cPanel部分,并点击就addon模块。 Then scroll to module named modsecurity.然后滚动到模块命名modsecurity 。 It should be checked Install and Keep Updated currently.应该检查安装和不断更新目前。 Just click on Uninstall to remove the mod security feature from Apache web server.只要按一下就卸载,以消除按付款当日价格计算的安全功能,从Apache Web服务器。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 . 。
Related Articles相关文章
- Remove and Uninstall Microsoft Office Activation Assistant - Fix Office Must Be Installed Error删除和卸载Microsoft Office激活助理-修复办公室必须安装错误
- Disable and Remove URGE Online Store in Windows Media Player 11 (WMP11)禁用并删除促请网上商店在Windows Media Player 11 ( wmp11 )
- How to Disable (Remove and Uninstall) Windows Defender in Vista如何禁用(删除和卸载)的Windows Defender在Vista
- Vista Uninstall, Change or Repair Programs and Updates Button Disappear and Not Showing Vista的卸载,更改或修复程序和更新按钮消失,无法显示
- How to Uninstall and Remove Spb Wallet Toolbar in IE Browser如何卸载和删除工具栏的钱包国家邮政局在IE浏览器
- Disable and Remove Yahoo!禁用和删除的Yahoo ! Messenger 9 Ads信使9广告
- How to Uninstall Paradox Vista Activation Crack and Activator如何卸载悖论Vista激活裂纹和激活
- How to Remove and Uninstall Vista Activation Cracks with VOATK Tools如何删除和卸载Vista激活裂缝与voatk工具
- Manually Uninstall and Delete Spb Wallet Toolbar from Firefox手动卸载和删除邮政局钱包,从工具栏的Firefox
- Alternative Windows Uninstaller MyUninstaller to Remove Hidden Programs另类的Windows卸载myuninstaller ,以消除隐患节目
















July 7th, 2007 00:16 2007年7月7日0时16分
A BIG Thanks to You!一个很大的感谢你!
It really works!是否真的工程! Thanks You!感谢你!
February 2nd, 2008 00:51 2008年2月2日0时51分
Exactly what I was looking for, thanks正是我一直在寻找,感谢
April 17th, 2008 17:13 2008年4月17日17时13分
Thanks alot!感谢了很多! It works!它的工程!
June 29th, 2008 23:47 2008年6月29日23时47分
Cheers, just what I needed, worked first time欢呼声中,刚才我所需要的工作,第一次