BlogHost主机部分服务器采用 LiteSpeed 商业版,不同于免费的 Apache 和 Nginx,LiteSpeed 的性能是传统的 Apache 的数倍,并且完美兼容Cpanel面板,和.htaccess.
但据一些用户反应在安装phpwind或dede等一些程序时候会出现一些403错误,类似于:
403 Forbidden
Access to this resource on the server is denied!
Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!
经过研究和参照资料,发现之所以会出现错误,是因为大多数的国外主机在配置 Apache 的时候启用了 mod_security ,也就是开启了安全检查,如果提交的信息中包含 select , % , bin 等关键字,Apache 就会禁止,并给出 403,404,500 等错误。下面就介绍一个解决方法:
找到.htaccess文件,在后面添加上如下内容即可,其实就是 disable mod_security
SecFilterEngine Off
SecFilterScanPOST Off