怎样去掉Apache1.X.X版本HTTP头中的“(win32)”字样

gaofaq 2004-12-25 11:32:02
我知道Apache2中有ServerTokens这个参数可以让HTTP头信息一点不剩
1.X中怎么办?
...全文
179 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
L0ading 2005-03-02
  • 打赏
  • 举报
回复
up
shuzai 2005-02-02
  • 打赏
  • 举报
回复
奇怪,我的apache里面居然没有libhttpd.dll这个文件...
版本是1.3的
hackate 2005-02-02
  • 打赏
  • 举报
回复
帮你顶,新年快乐,今天ASP板块进不去,所以来这了!
fzjw 2005-02-02
  • 打赏
  • 举报
回复
Apache 1.3.33不显示操作系统类型,仅仅显示

Apache/1.3.33 Server at www.*.com Port 80
binghgo 2004-12-29
  • 打赏
  • 举报
回复
在编译前
改一下mod 里的info 模块
记不清了\
你[到网上找一下
多着呢
这网吧的键盘真TM不好使
mrshelly 2004-12-28
  • 打赏
  • 举报
回复
我用 WinHex 把它改成了 IIS 5.0 ..
myaniu 2004-12-28
  • 打赏
  • 举报
回复
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minor | Minimal | Major | Prod
# where Full conveys the most information, and Prod the least.
#
ServerTokens Full
将上面这句改成
ServerTokens Prod
ashchen 2004-12-27
  • 打赏
  • 举报
回复
源代码编译

一、文件操作
file:srcdir/include/ap_release.h

代码:
#define AP_SERVER_BASEVENDOR"这里填写开发组织名,例如:Microsoft Corp."
#defineAP_SERVER_BASEPRODUCT"这里填写服务器软件名,例如:Microsoft-IIS"
#defineAP_SERVER_MAJORVERSION "主版本,例如:5"
#defineAP_SERVER_MINORVERSION "次版本,例如:0"
#defineAP_SERVER_PATCHLEVEL "修正版本,例如:1"



file:srcdir/include/os.h
代码:
#definePLATFORM "这里填写操作系统的名称,例如:Win32"



file:srcdir/os/PLATFORM/os.h
代码:
#definePLATFORM "这里填写操作系统的名称,例如:Win32"



file:srcdir/modules/generators/mod_info.c
代码:
Search "Apache Server Information" replace with"这里填写在查看server-info现实的页面标题,例如:Microsoft-IISInformation"


file:srcdir/modules/generators/mod_status.c
代码:
Search "Apache Server Status" replace with"这里填写在查看server-status现实的页面标题,例如:Microsoft-IISStatus"


说明:
代码:
file:path/to/filename 表示要对这个文件进行操作
Search"A" replace with "B"表示在文件之中搜索A,然后使用B替换

然后编译
ashchen 2004-12-27
  • 打赏
  • 举报
回复
Windows下直接用十六进制器编辑Apache/bing/libhttpd.dll文件,用ASCII搜索,找到第2个Win32,试试看
gaofaq 2004-12-27
  • 打赏
  • 举报
回复
用16进制编辑器编辑libhttpd.dll之后 服务就起不来了


>net start apache
>“服务没有响应控制功能。”
fzjw 2004-12-26
  • 打赏
  • 举报
回复
设置Prod,只能在Apache2中,据我发现,Apache1.3.x并没有这个功能
fzjw 2004-12-26
  • 打赏
  • 举报
回复
设置Prod,只能在Apache2中,据我发现,Apache1.3.x并没有这个功能
DeltaCat 2004-12-26
  • 打赏
  • 举报
回复
不能一点不剩的, 设置为 Prod 是最少的

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧