apache 的設定…

使用 apache 的人應該要把一些 msg 關掉,這樣對外的資訊就會少一點了…

#
# 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 Prod

#
# Optionally add a line containing the server version and virtual host name to server-generated pages (internal error documents, FTP directory listings, mod_status and mod_info output etc., but not CGI generated documents or custom error documents). Set to “EMail” to also include a mailto: link to the ServerAdmin.
# Set to one of: On | Off | EMail
#
ServerSignature Off

然後跑看看 HEAD:

gslin@netnews [~] [15:16/W5] HEAD http://127.0.0.1/
200 OK
Connection: close
Date: Tue, 12 Oct 2004 07:16:50 GMT
Accept-Ranges: bytes
ETag: “5ca2b-565-b0c38f00”
Server: Apache
Content-Length: 1381
Content-Type: text/html
Last-Modified: Tue, 26 Aug 2003 04:51:40 GMT
Client-Date: Tue, 12 Oct 2004 07:16:50 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1

跟其他家的比看看吧 :p

gslin@netnews [~] [15:19/W5] HEAD http://www.nctu.edu.tw/
200 OK
Connection: close
Date: Tue, 12 Oct 2004 07:23:05 GMT
Accept-Ranges: bytes
ETag: “16e500a8-4f19-aad7ef80”
Server: Apache/2.0.40 (Red Hat Linux)
Content-Length: 20249
Content-Type: text/html; charset=Big5
Last-Modified: Tue, 12 Oct 2004 03:28:14 GMT
Client-Date: Tue, 12 Oct 2004 07:19:09 GMT
Client-Peer: 140.113.250.5:80
Client-Response-Num: 1

gslin@netnews [~] [15:19/W5] HEAD http://www.ntu.edu.tw/
200 OK
Connection: close
Date: Tue, 12 Oct 2004 07:41:58 GMT
Accept-Ranges: bytes
ETag: “1689a4-7ab4-414a656c”
Server: Apache/1.3.26 (Unix) PHP/4.2.1
Content-Length: 31412
Content-Type: text/html
Last-Modified: Fri, 17 Sep 2004 04:17:48 GMT
Client-Date: Tue, 12 Oct 2004 07:19:29 GMT
Client-Peer: 140.112.8.130:80
Client-Response-Num: 1

gslin@netnews [~] [15:19/W5] HEAD http://www.nthu.edu.tw/
200 OK
Connection: close
Date: Tue, 12 Oct 2004 07:44:29 GMT
Accept-Ranges: bytes
ETag: “136507-1306-412475d8”
Server: Apache/1.3.26 (Unix)
Content-Length: 4870
Content-Type: text/html
Last-Modified: Thu, 19 Aug 2004 09:41:44 GMT
Client-Date: Tue, 12 Oct 2004 07:19:32 GMT
Client-Peer: 140.114.69.9:80
Client-Response-Num: 1