在Apache中禁用跟踪 [英] Disable Track and Trace in apache
本文介绍了在Apache中禁用跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在suse Linux中具有Apache 2.2.22.我想禁用跟踪和在Apache中跟踪并使用1- TraceEnable Off和2- RewriteEngine on
I have Apache 2.2.22 in suse Linux. I want to disable track & trace in Apache and use 1- TraceEnable Off and 2- RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F] .
但是有两种方法不起作用.
but of 2 way don't work.
推荐答案
在Apache2中,您只需在httpd.conf(文件末尾)中添加TraceEnable Off
In Apache2 you can just add TraceEnable Off
in httpd.conf (end of file)
TraceEnable Off
要检查Trace是否打开/关闭,可以使用Curl:
To check if Trace is On/Off you can use Curl:
curl -v -X TRACE http://www.yourserver.com
这篇关于在Apache中禁用跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文