首页 > 开发 > Apache > 正文

网站 501 Method Not Implemented错误提示

2020-10-12 18:49:27
字体:
来源:转载
供稿:网友

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

有的朋友说服务器加载security_module 模块导致,如果服务器端解决可以将/etc/conf.d/mod_security.conf 中的如下代码:

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

注释掉,就可以了,或者可以在.htaccess里加上以下内容

  1. <IfModule mod_security.c> 
  2. SecFilterEngine Off 
  3. SecFilterScanPOST Off 
  4. </IfModule> 
国外网站找到一解决办法,代码如下:
 
  1. $ telnet www.example.com 80 
  2. Trying 192.0.32.10... 
  3. Connected to www.example.com. 
  4. Escape character is '^]'
  5. OPTIONS / HTTP/1.1 
  6. HTTP/1.1 200 OK 
  7. Date: Tue, 08 Dec 2009 02:29:38 GMT 
  8. Server: Apache/2.2.3 (CentOS) 
  9. Allow: GET,HEAD,POST,OPTIONS,TRACE 
  10. Content-Type: text/html; charset=UTF-8 
  11. Content-Length: 0 
  12. Connection: close 
  13. Connection closed by foreign host. 

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