今天网站在打开时发现提示 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. $
您可能感兴趣的文章:
- 在Linux系统上查看Apache服务器的错误日志
- 由Apache 500错误引出的临时文件问题分析解决
- Apache启动错误Permission denied: httpd: could not open error log file解决方法
- Apache2.4.2编译安装2个常见错误和解决方法
- Apache Request-URI Too Large错误解决方法
- Windows系统下Apache服务器无法启动的问题解决
- Apache安装后出现服务无法启动(服务里启动出现错误代码1)
本文由 华域联盟 原创撰写:华域联盟 » Apache访问出现501 Method Not Implemented错误解决
转载请保留出处和原文链接:https://www.cnhackhy.com/49055.htm