首页 > 开发 > Apache > 正文

Apache访问出现501 Method Not Implemented错误解决

2020-07-28 15:45:02
字体:
来源:转载
供稿:网友
这篇文章主要介绍了Apache访问出现501 Method Not Implemented错误解决,有些导致该错误的情况可以用文中修改配置文件的方法来解决,需要的朋友可以参考下

今天网站在打开时发现提示 501 Method Not Implemented to /index.html not supported.了,我用的是apache环境了,下面我来给大家介绍解决办法。

有的朋友说

服务器加载security_module 模块导致。
如果服务器端解决可以
将/etc/conf.d/mod_security.conf 中的

loadfile /usr/libxml2.so.2loadmodule security_module modules/mod_security2.soloadmodule unique_id_module modules/mod_unique_id.so

注释掉,就可以了。

或者可以在
.htaccess里加上以下内容

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

将其关闭。

国外网站找到一解决办法。

$ telnet www.example.com 80Trying 192.0.32.10...Connected to www.example.com.Escape character is '^]'.OPTIONS / HTTP/1.1HTTP/1.1 200 OKDate: Tue, 08 Dec 2009 02:29:38 GMTServer: Apache/2.2.3 (CentOS)Allow: GET,HEAD,POST,OPTIONS,TRACEContent-Type: text/html; charset=UTF-8Content-Length: 0Connection: closeConnection closed by foreign host.$

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表