Apache TraceEnable关闭与测试方法

news/2024/7/8 6:42:40
系统环境:
OS: RHEL5.6_x64
Apache: httpd-2.2.11
关闭方法:
在主配置文件httpd.conf中添加配置:
TraceEnable off
可以直接配置在ServerRoot参数下面。
 
测试方法:
通过telnet到HTTP的某个服务端口,进行测试,如下描述(红色为你要输入的部分)。
关闭前测试会返回200 OK:
[root@web001 ~]$  telnet xxx.xxx.xxx.xxx 80
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx).
Escape character is '^]'.
TRACE / HTTP/1.0
X-Test:abcde
HTTP/1.1 200 OK
Date: Wed, 18 Jul 2012 06:49:19 GMT
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_jk/1.2.28
Connection: close
Content-Type: message/http
TRACE / HTTP/1.0
X-Test: abcde
Connection closed by foreign host.
 
关闭后测试会返回405 Method Not Allowed:
[root@web001 ~]$  telnet xxx.xxx.xxx.xxx 80
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx).
Escape character is '^]'.
TRACE / HTTP/1.0
X-Test:abcde
HTTP/1.1 405 Method Not Allowed
Date: Wed, 18 Jul 2012 06:50:05 GMT
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_jk/1.2.28
Allow: 
Content-Length: 223
Connection: close
Content-Type: text/html; charset=iso-8859-1
X-Pad: avoid browser bug




Method Not Allowed


The requested method TRACE is not allowed for the URL /.



Connection closed by foreign host.

转载于:https://www.cnblogs.com/php5/p/5622435.html


http://www.niftyadmin.cn/n/4394987.html

相关文章

VNC Viewer的问题

VNC Viewer远程登录服务器时点了logout 标签: 远程登录服务器图形windowskillssh2012-08-02 15:55 3746人阅读 评论(1) 收藏 举报分类:Linux(16) 版权声明:本文为博主原创文章,未经博主允许不得转载。 问题…

解决高速物体碰撞不精确的问题

只要在碰撞属性中勾选Use CCD,当然代价就是耗费更多的CPU 转载于:https://www.cnblogs.com/blueroses/p/5624838.html

编译 linux 0.01

编译 linux 0.011.下载linux-0.11-devel-060625(这个有gar,编译时要用),bochs 2.52.建新硬盘img 用bochs自带的bxp_w_picpath建&#xff0c;按<linux-0.11内核完全解析>里的说明进行&#xff0c;也是256M. 然后fdisk,mkfs,然后把mkdir root, 然后把/bin,/dev,/usr复制过…

如何获取 XAML 控件的模板代码

有时候 .NET 自带提供的控件并不能满足我们的实际需求&#xff0c;需要进行修改&#xff0c;或者参考代码来建立新的控件。 可以在编辑器的文档大纲窗口中&#xff0c;找到所需的对象&#xff0c;然后在其上点右键&#xff0c;编辑模板&#xff0c;编辑副本 弹出创建 Style 资源…

scrapy 爬取自己的博客

定义项目 # -*- coding: utf-8 -*- # items.pyimport scrapyclass LianxiCnblogsItem(scrapy.Item):# define the fields for your item here like:# name scrapy.Field()url scrapy.Field()title scrapy.Field()article scrapy.Field()post_date scrapy.Field() 定义爬虫…

外部系统集成BIEE

1.外部系统集成BIEE 隐藏工具栏和仪表盘右上角的菜单 2.BIEE 11g 嵌入Iframe InIFrameRenderingMode有三种取值&#xff0c;分别是prohibit、sameDomainOnly、allow 3.自定义菜单栏 4.BIEE构建RPD转载于:https://www.cnblogs.com/lanshure/p/5629633.html

对二维数组进行快速排序的 方法

解决问题 的方法 千千万 在这里我就写一种自己认为比较好的 排序思想吧 . 最初的时候 我想的是 这样的 #include<cstdio> #include<algorithm> using namespace std; bool cmp(int a[],int b[]) {return a[0]>b[0]; } int main() {int a[3][2]{3,4,1,2,5,6…

linux跟踪线程的方法:LWP和strace命令

摘要&#xff1a;在使用多线程程序时&#xff0c;有时会遇到程序功能异常的情况&#xff0c;而这种异常情况并不是每次都发生&#xff0c;很难模拟出来。这时就需要运用在程序运行时跟踪线程的手段&#xff0c;而linux系统的LWP和strace命令正是这种技术手段。本文对LWP和strac…