当前位置:   首页安装配置

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

发布日期:2022-06-17 12:44 | 文章来源:源码之家

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

有的朋友说

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

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

注释掉,就可以了。

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

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

将其关闭。

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

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

联系我们
关于使用场景和技术架构的更多咨询,请联系我们的销售和技术支持团队。
Yingsoo Host

在线
客服

在线客服:7*24小时在线

客服
热线

400-630-3752
7*24小时客服服务热线

关注
微信

关注官方微信
顶部