譯者:Nica < nicaliu at gmail dot com >

【Nica 註:這是 httpd.conf 檔裡的設定指令!~】



Description:    Configures the Server HTTP response header

Syntax:    ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full

Default:    ServerTokens Full

Context:    server config

Status:    Core

Module:    core

該指令控制的是伺服器回應 header 欄位時,是否要回傳給用戶端,包括有伺服器作業系統型態的相關資訊,以及其納入的模組。



ServerTokens Prod[uctOnly]  【<= Nica 建議設定這個】

伺服器的回傳會像這樣: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 (or not specified)

伺服器的回傳會像這樣:Server: Apache/2.0.41 (Unix) PHP/4.2.2 MyMod/1.2



此設定將套用於整個伺服器,且無法依個別的 virtualhost 啟用或停用。



在 2.0.44 之後的版本,該指令控制了 ServerSignature 指令所呈現的資訊。



延申閱讀:

ServerSignature



原文出處:

Apache Core Features - ServerTokens Directive
arrow
arrow
    全站熱搜

    nicaliu 發表在 痞客邦 留言(0) 人氣()