什么是QZHTTP?Web Server我见过不少,开源界大哥Apache,微软帝国的IIS,俄罗斯牛B的Nginx,刚起步的Cherokee,功能强大但商业性质浓厚的Zeus,etc。惟独这个QZHTTP,没见过。
“Netcraft 2009年2月的Web Server调查显示,中国Web Server QZHTTP使用量如同火箭般的极速上升。这次共调查了215,675,903个网站,数量比上月增长了16%。使用QZHTTP的网站数量从上月的3 个,匪夷所思的增长到20,021,763个,从零升到9.28%;Apache略降3.67%,占总调查网站数量的48.59%;微软的IIS降 3.72%,占总数的29.18%。 QQ是中国使用最普遍的IM工具,QZHTTP是QQ为旗下数百万Qzone网站使用的Web Server。如今Qzone已经成为世界上最大的BSP(博客服务提供商),超过了Windows Live Spaces,Blogger和MySpace。这是否是意味着咱们即将进入新的Web server时代?”——引用自Solidot。
不得了,一下飙升这么多,为何呢?原来,QQ空间对每一个空间用户分配一个以QQ号码开头的子域名,而QQ空间最近号称全球之最,起用户数量可想而知,所以,也不会以为意外。
让咱们来看看腾讯的网站的服务器信息:
HTTP/1.0 200 OK
Date: Wed, 25 Feb 2009 16:06:33 GMT
Server: Apache
Accept-Ranges: bytes
Cache-Control: max-age=120
Expires: Wed, 25 Feb 2009 16:08:33 GMT
Vary: Accept-Encoding
Content-Type: text/html; charset=GB2312
Age: 11
X-Cache: HIT from rainny.qq.com
Via: 1.0 rainny.qq.com:80 (squid/2.6.STABLE5)
Connection: close
QQ主页使用的是Apache。
QQ的IM软件下载页面也是用的Apache
# curl --head [url]http://video.qq.com/[/url]
HTTP/1.1 200 OK
Server: qhttpd
Connection: close
Date: Wed, 25 Feb 2009 16:08:49 GMT
Expires: Wed, 25 Feb 2009 19:08:49 GMT
Cache-Control: max-age=10800
Last-Modified: Wed, 25 Feb 2009 16:04:03 GMT
Content-Type: text/html
Content-Length: 28019
QQ视频服务器,使用的是qhttpd(此并不是QQ HTTP的意思,这是另外一个比较出名开源WEB服务器)。
# curl --head [url]http://photo.qq.com/[/url]
HTTP/1.1 200 OK
Server: nginx/0.5.34
Date: Wed, 25 Feb 2009 16:12:14 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Wed, 25 Feb 2009 18:12:14 GMT
Cache-Control: max-age=7200
QQ相册,使用的是俄罗斯的Nginx
# curl --head [url]http://music.qq.com/[/url]
HTTP/1.1 200 OK
Expires: Wed, 25 Feb 2009 16:43:08 GMT
Cache-Control: max-age=1800
Content-Type: text/html
Accept-Ranges: bytes
ETag: "1399854602"
Last-Modified: Tue, 24 Feb 2009 23:40:58 GMT
Content-Length: 112184
Date: Wed, 25 Feb 2009 16:13:08 GMT
Server: dnion-svr
Dnion-Svr?没听过
# curl --head [url]http://qzone.qq.com[/url]
HTTP/1.1 200 OK
Date: Wed, 25 Feb 2009 16:14:09 GMT
Server: Apache
Last-Modified: Wed, 25 Feb 2009 08:49:46 GMT
Accept-Ranges: bytes
Content-Length: 128633
Cache-Control: max-age=43200
Expires: Thu, 26 Feb 2009 04:14:09 GMT
Vary: Accept-Encoding
Connection: close
Content-Type: text/html
Qzone首页,使用的仍是Apache
今天的主角来了,QZHTTP,目前使用的是2.3版本。
真是服了QQ,开源界的Web Server主流都有用,其中Apache使用特别多,具高手介绍,这个所谓QZHTTP与Apache有着密切关系,搞很差就是用Apache改装的。