利用curl小工具可以查看web站点的服务器类型。
curl --head 网址
xingwenpeng@ubuntu:~/Desktop/project/nginx-1.6.2/contrib$ curl --head www.sina.com.cn
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 04 Dec 2014 02:05:58 GMT
Content-Type: text/html
Last-Modified: Thu, 04 Dec 2014 02:05:32 GMT
Vary: Accept-Encoding
Expires: Thu, 04 Dec 2014 02:06:58 GMT
Cache-Control: max-age=60
X-Powered-By: schi_v1.02
Age: 2
Content-Length: 559625
X-Cache: HIT from ja180-183.sina.com.cn
xingwenpeng@ubuntu:~/Desktop/project/nginx-1.6.2/contrib$ cd
xingwenpeng@ubuntu:~$ curl --head www.taobao.com
HTTP/1.1 200 OK
Server: Tengine
Date: Thu, 04 Dec 2014 02:08:06 GMT
Content-Type: text/html; charset=gbk
Connection: keep-alive
Vary: Accept-Encoding
Set-Cookie: CAT=deleted; expires=Wed, 04-Dec-2013 02:08:05 GMT
Expires: Thu, 04 Dec 2014 03:08:06 GMT
Cache-Control: max-age=3600
xingwenpeng@ubuntu:~$ curl --head www.sohu.com
HTTP/1.1 200 OK
Content-Type: text/html
Connection: keep-alive
Date: Thu, 04 Dec 2014 02:05:34 GMT
Server: SWS
Vary: Accept-Encoding
Cache-Control: max-age=120
Expires: Thu, 04 Dec 2014 02:07:34 GMT
Last-Modified: Thu, 04 Dec 2014 02:05:15 GMT
X-RS: 10511343.19686393.11189627
FSS-Cache: HIT from 5858216.10380210.6536429
xingwenpeng@ubuntu:~$ curl --head www.jd.com
HTTP/1.1 200 OK
Server: JDWS
Date: Thu, 04 Dec 2014 02:07:58 GMT
Content-Type: text/html; charset=gbk
Vary: Accept-Encoding
Last-Modified: Thu, 04 Dec 2014 02:05:09 GMT
Vary: Accept-Encoding
Expires: Thu, 04 Dec 2014 02:08:48 GMT
Cache-Control: max-age=120
Via: HIT from BJ-UNI-NX-14573, http/1.1 BJ-CT-2-JCS-101 ( [cRs f ])
Content-Encoding: gzip
Age: 41
Content-Length: 88222
Connection: keep-alive