WDlinux官方论坛's Archiver

ias 发表于 2012-8-31 09:29

如何关闭TRACE Method

如何关闭TRACE Method

admin 发表于 2012-8-31 09:58


/www/wdlinux/apache/conf/httpd.conf
末尾加上一行
TraceEnable off
重起
service httpd restart

如果还不行,则在/www/wdlinux/apache/conf/vhost
目录下的每个配置文件的</Virturlhost>前面增加
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
重起
service httpd restart

ias 发表于 2012-9-1 15:33


/www/wdlinux/apache/conf/httpd.conf
末尾加上一行
TraceEnable off
重起
service httpd restart

所有网站无法访问

admin 发表于 2012-9-1 15:54

提示什么?

ias 发表于 2012-9-1 20:02

[i=s] 本帖最后由 ias 于 2012-9-1 20:03 编辑 [/i]

所有站点都是

  Internet Explorer 无法显示该网页
   
   您可以尝试以下操作:
     您可能已经连接到 Internet,但您可能希望尝试重新连接到 Internet。  

     重新键入地址。  

     返回到上一页。

   最可能的原因是:
•未连接到 Internet。
•该网站遇到了问题。
•在地址中可能存在键入错误。
但是
[url=http://www.xxx.xx:8080/]http://www.xxx.xx:8080/[/url] 可以登录wdcp

ias 发表于 2012-9-1 20:13

[root@wdOS ~]# service httpd restart
停止 httpd:                                               [失败]
启动 httpd:Syntax error on line 203 of /www/wdlinux/httpd-2.2.22/conf/httpd.con                                                                              f:
LogFormat takes 1-2 arguments, a log format string (see docs) and an optional fo                                                                              rmat name
                                                           [失败]
[root@wdOS ~]# service httpd restart
停止 httpd:                                               [失败]
启动 httpd:Syntax error on line 203 of /www/wdlinux/httpd-2.2.22/conf/httpd.con                                                                              f:
LogFormat takes 1-2 arguments, a log format string (see docs) and an optional fo                                                                              rmat name
                                                           [失败]
[root@wdOS ~]#

ias 发表于 2012-9-1 20:18

如果还不行,则在/www/wdlinux/apache/conf/vhost
目录下的每个配置文件的</Virturlhost>前面增加
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
重起
service httpd restart

[root@wdOS ~]# service httpd restart
停止 httpd:                                               [失败]
启动 httpd:Syntax error on line 203 of /www/wdlinux/httpd-2.2.22/conf/httpd.conf:
LogFormat takes 1-2 arguments, a log format string (see docs) and an optional format name
                                                           [失败]

ias 发表于 2012-9-1 20:18

重启服务器也没作用

admin 发表于 2012-9-1 21:58

去掉试试

ias 发表于 2012-9-2 12:01

[i=s] 本帖最后由 ias 于 2012-9-2 12:04 编辑 [/i]

去掉 问题依旧 重启数次无效 重启服务器 无效 ,无奈昨晚 备份 下载 重做系统 恢复。因为
360网站安全检测 的一个检测结果[color=#810081]网站安全检测详情[/color][table=98%,#cccccc]
[tr=#e9f2fb][td=1,1,65]漏洞等级[/td][td=1,1,140]漏洞名称[/td][td=1,1,200]漏洞危害[/td][td]存在漏洞的网页地址[/td][/tr]
[tr=#ffffff][td]提示
[/td][td][b][color=#0000ff]发现服务器启用了TRACE Method[/color][/b][/td][td]
1. 恶意攻击者可以通过TRACE Method返回的信息了解到网站前端的一些信息,如缓存服务器等,从而为下一步的攻击提供便利。[/td][td][list][*][color=#810081]xxx.xxxx.xxx[/color][/list]
[/td][/tr]
[/table]
又折腾了 一天。

admin 发表于 2012-9-2 12:53

去掉也不行,那就不是你做的这个修改问题,而是其它问题

ias 发表于 2012-9-2 12:56

有人试过么?成功么?

chen7413 发表于 2012-9-16 01:37

大哥们,出来解决哈嘛,就是上这样的操作。害死我了。网站打不开了。

testu 发表于 2013-4-11 11:43

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=13343&ptid=3432]13#[/url] [i]chen7413[/i] [/b]


   解决了吗?

taoboacn 发表于 2013-9-21 19:40

我的使用在
/www/wdlinux/apache/conf/httpd.conf
末尾加上一行
TraceEnable off
重起
service httpd restart

这个方法完美解决,已经通过360安全检测了

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.