apache常用的配置指令:ServerTokens

服务器   发布日期:2023年05月27日   浏览次数:648

ServerTokens 指令

说明 配置"Server:"应答头

语法 ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full

默认值 ServerTokens Full

作用域 server config

状态 核心(C)

模块 core

这个指令控制了服务器回应给客户端的"Server:"应答头是否包含关于服务器操作系统类型和编译进的模块描述信息。


ServerTokens Prod[uctOnly]

服务器会发送(比如): Server: Apache

ServerTokens Major

服务器会发送(比如): Server: Apache/2

ServerTokens Minor

服务器会发送(比如): Server: Apache/2.0

ServerTokens Min[imal]

服务器会发送(比如): Server: Apache/2.0.41

ServerTokens OS

服务器会发送(比如): Server: Apache/2.0.41 (Unix)

ServerTokens Full (或未指定)

服务器会发送(比如): Server: Apache/2.0.41 (Unix) PHP/4.2.2 MyMod/1.2

此设置将作用于整个服务器,而且不能用在虚拟主机的配置段中。

以上就是apache常用的配置指令:ServerTokens的详细内容,更多关于apache常用的配置指令:ServerTokens的资料请关注九品源码其它相关文章!