[文章作者:张宴 本文版本:v1.1 最后修改:2008.06.19 转载请注明原文链接:http://blog.zyan.cc/post/352/]
Nginx 超越Apache的高性能和稳定性,使得国内使用 Nginx 作为 Web 服务器的网站也越来越多,其中有新浪、网易、腾讯等门户网站,六间房、酷6等视频分享网站,Discuz!、水木社区等知名论坛,豆瓣、YUPOO等新兴Web 2.0网站。
Nginx 在国内的应用正在不断发展壮大!
一、使用 Nginx 运行 PHP(FastCGI) 程序的网站:
1、六间房视频(http://www.6.cn/):nginx/0.6.14 + PHP
2、Discuz!官方论坛(http://www.discuz.net/):nginx/0.7.2 + PHP/5.2.6
3、互联星空播客[新浪服务器](http://you.video.vnet.cn/):nginx/0.5.33 + PHP/5.2.5
4、水木社区(http://www.newsmth.net/):nginx/0.5.35 + PHP
5、落伍者站长论坛(http://www.im286.com/):nginx/0.6.29 + PHP/5.1.6
二、使用 Nginx 作反向代理、规则过滤的网站:
1、新浪博客(http://blog.sina.com.cn/):nginx/0.5.35
2、YUPOO相册(http://www.yupoo.com/):nginx/0.5.35
三、使用 Nginx 运行静态HTML页、图片、FLV视频的网站:
1、网易新闻(http://news.163.com/):nginx/0.6.31
2、酷6网(http://www.ku6.com/)视频服务器:nginx/0.5.36
3、豆瓣网(http://www.douban.com/):nginx
4、新华网RSS订阅频道(http://rss.xinhuanet.com/):nginx
5、迅雷安全中心(http://safe.xunlei.com/):nginx/0.6.31
6、腾讯3G下载(http://down.3g.qq.com/):nginx/0.5.33
Nginx 超越Apache的高性能和稳定性,使得国内使用 Nginx 作为 Web 服务器的网站也越来越多,其中有新浪、网易、腾讯等门户网站,六间房、酷6等视频分享网站,Discuz!、水木社区等知名论坛,豆瓣、YUPOO等新兴Web 2.0网站。
Nginx 在国内的应用正在不断发展壮大!
一、使用 Nginx 运行 PHP(FastCGI) 程序的网站:
1、六间房视频(http://www.6.cn/):nginx/0.6.14 + PHP
[root@new-host ~]# curl --head http://6.cn/reg.php
HTTP/1.0 200 OK
Server: nginx/0.6.14
Date: Wed, 18 Jun 2008 00:58:20 GMT
Content-Type: text/html
Vary: Accept-Encoding
X-Cache: MISS from YZ-W-146
X-Cache-Lookup: MISS from YZ-W-146:80
Via: 1.0 YZ-W-146 (squid/3.0.STABLE1.dev)
Connection: close
HTTP/1.0 200 OK
Server: nginx/0.6.14
Date: Wed, 18 Jun 2008 00:58:20 GMT
Content-Type: text/html
Vary: Accept-Encoding
X-Cache: MISS from YZ-W-146
X-Cache-Lookup: MISS from YZ-W-146:80
Via: 1.0 YZ-W-146 (squid/3.0.STABLE1.dev)
Connection: close
2、Discuz!官方论坛(http://www.discuz.net/):nginx/0.7.2 + PHP/5.2.6
[root@new-host ~]# curl --head http://www.discuz.net/index.php
HTTP/1.1 200 OK
Server: nginx/0.7.2
Date: Wed, 18 Jun 2008 00:57:16 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.2.6
Set-Cookie: dznet_sid=Ek9XYc; expires=Wed, 25-Jun-2008 00:57:16 GMT; path=/; domain=.discuz.net
HTTP/1.1 200 OK
Server: nginx/0.7.2
Date: Wed, 18 Jun 2008 00:57:16 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.2.6
Set-Cookie: dznet_sid=Ek9XYc; expires=Wed, 25-Jun-2008 00:57:16 GMT; path=/; domain=.discuz.net
3、互联星空播客[新浪服务器](http://you.video.vnet.cn/):nginx/0.5.33 + PHP/5.2.5
[root@new-host ~]# curl --head http://you.video.vnet.cn/pg/user/userHead.js.php
HTTP/1.1 200 OK
Server: nginx/0.5.33
Content-Type: text/html; charset=gb2312
X-Powered-By: PHP/5.2.5
Expires: Sun, 13 Jul 2008 05:43:16 GMT
Last-Modified: Fri, 13 Jun 2008 05:43:16GMT
Content-Encoding: gzip
Content-Length: 22403
Date: Wed, 18 Jun 2008 01:09:33 GMT
X-Varnish: 1426517043 1413292132
Age: 415577
Via: 1.1 varnish
Connection: keep-alive
HTTP/1.1 200 OK
Server: nginx/0.5.33
Content-Type: text/html; charset=gb2312
X-Powered-By: PHP/5.2.5
Expires: Sun, 13 Jul 2008 05:43:16 GMT
Last-Modified: Fri, 13 Jun 2008 05:43:16GMT
Content-Encoding: gzip
Content-Length: 22403
Date: Wed, 18 Jun 2008 01:09:33 GMT
X-Varnish: 1426517043 1413292132
Age: 415577
Via: 1.1 varnish
Connection: keep-alive
4、水木社区(http://www.newsmth.net/):nginx/0.5.35 + PHP
[root@new-host ~]# curl --head http://www.newsmth.net/img_rand/img_rand.php
HTTP/1.1 200 OK
Server: nginx/0.5.35
Date: Wed, 18 Jun 2008 00:59:01 GMT
Content-Type: image/png
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Set-Cookie: PHPSESSID=fbb54a90ff0d42f92f49978512902a20; expires=Wednesday, 18-Jun-08 01:59:01 GMT; path=/
Pragma: no-cache
X-Cache: MISS from www.newsmth.net
HTTP/1.1 200 OK
Server: nginx/0.5.35
Date: Wed, 18 Jun 2008 00:59:01 GMT
Content-Type: image/png
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Set-Cookie: PHPSESSID=fbb54a90ff0d42f92f49978512902a20; expires=Wednesday, 18-Jun-08 01:59:01 GMT; path=/
Pragma: no-cache
X-Cache: MISS from www.newsmth.net
5、落伍者站长论坛(http://www.im286.com/):nginx/0.6.29 + PHP/5.1.6
[root@new-host ~]# curl --head http://www.im286.com/
HTTP/1.1 200 OK
Server: nginx/0.6.29
Date: Wed, 18 Jun 2008 02:20:48 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Set-Cookie: cdb_sid=eO31Jb; expires=Wed, 25-Jun-2008 02:20:48 GMT; path=/
HTTP/1.1 200 OK
Server: nginx/0.6.29
Date: Wed, 18 Jun 2008 02:20:48 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Set-Cookie: cdb_sid=eO31Jb; expires=Wed, 25-Jun-2008 02:20:48 GMT; path=/
二、使用 Nginx 作反向代理、规则过滤的网站:
1、新浪博客(http://blog.sina.com.cn/):nginx/0.5.35
[root@new-host ~]# curl --head http://blog.sina.com.cn/
HTTP/1.1 200 OK
Server: nginx/0.5.35
Date: Wed, 18 Jun 2008 01:18:50 GMT
Content-Type: text/html
Content-Length: 491279
Last-Modified: Wed, 18 Jun 2008 01:14:16 GMT
Connection: keep-alive
Expires: Wed, 18 Jun 2008 01:19:20 GMT
Cache-Control: max-age=30
Accept-Ranges: bytes
HTTP/1.1 200 OK
Server: nginx/0.5.35
Date: Wed, 18 Jun 2008 01:18:50 GMT
Content-Type: text/html
Content-Length: 491279
Last-Modified: Wed, 18 Jun 2008 01:14:16 GMT
Connection: keep-alive
Expires: Wed, 18 Jun 2008 01:19:20 GMT
Cache-Control: max-age=30
Accept-Ranges: bytes
2、YUPOO相册(http://www.yupoo.com/):nginx/0.5.35
[root@new-host ~]# curl --head http://www.yupoo.com/
HTTP/1.1 200 OK
Server: nginx/0.5.35
Date: Wed, 18 Jun 2008 01:58:04 GMT
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: JSESSIONID=EC1A7935-4C66-B834-8B5B-495E958A6B53; Domain=.yupoo.com; Path=/
Content-Language: zh-CN
HTTP/1.1 200 OK
Server: nginx/0.5.35
Date: Wed, 18 Jun 2008 01:58:04 GMT
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: JSESSIONID=EC1A7935-4C66-B834-8B5B-495E958A6B53; Domain=.yupoo.com; Path=/
Content-Language: zh-CN
三、使用 Nginx 运行静态HTML页、图片、FLV视频的网站:
1、网易新闻(http://news.163.com/):nginx/0.6.31
[root@new-host ~]# curl --head http://news.163.com/
HTTP/1.0 200 OK
Server: nginx/0.6.31
Date: Wed, 18 Jun 2008 01:17:04 GMT
Content-Type: text/html; charset=GBK
Expires: Wed, 18 Jun 2008 01:20:04 GMT
Cache-Control: max-age=180
X-Cache: MISS from cgi-gzip.163.com
Content-Length: 259923
Vary: Accept-Encoding
Age: 74
X-Cache: HIT from news.163.com
Connection: close
HTTP/1.0 200 OK
Server: nginx/0.6.31
Date: Wed, 18 Jun 2008 01:17:04 GMT
Content-Type: text/html; charset=GBK
Expires: Wed, 18 Jun 2008 01:20:04 GMT
Cache-Control: max-age=180
X-Cache: MISS from cgi-gzip.163.com
Content-Length: 259923
Vary: Accept-Encoding
Age: 74
X-Cache: HIT from news.163.com
Connection: close
2、酷6网(http://www.ku6.com/)视频服务器:nginx/0.5.36
[root@new-host ~]# curl --head http://video.ku6.com/
HTTP/1.1 404 Not Found
Server: nginx/0.5.36
Date: Wed, 18 Jun 2008 01:50:06 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Last-Modified: Sun, 05 Aug 2007 09:49:48 GMT
Accept-Ranges: bytes
Content-Length: 18782
Vary: Accept-Encoding
X-Cache: MISS from CDN-TJ-249
HTTP/1.1 404 Not Found
Server: nginx/0.5.36
Date: Wed, 18 Jun 2008 01:50:06 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Last-Modified: Sun, 05 Aug 2007 09:49:48 GMT
Accept-Ranges: bytes
Content-Length: 18782
Vary: Accept-Encoding
X-Cache: MISS from CDN-TJ-249
3、豆瓣网(http://www.douban.com/):nginx
[root@new-host ~]# curl --head http://www.douban.com/
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 18 Jun 2008 01:56:58 GMT
Content-Type: text/html; charset=utf-8
Status: 200 OK
Content-Length: 30106
Expires: Sun, 1 Jan 2006 01:00:00 GMT
Pragma: no-cache
Cache-Control: must-revalidate, no-cache, private
Set-Cookie: bid="rAlrIPo2jl4"; path=/; domain=.douban.com; expires=Thu, 01-Jan-2009 00:00:00 GMT
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 18 Jun 2008 01:56:58 GMT
Content-Type: text/html; charset=utf-8
Status: 200 OK
Content-Length: 30106
Expires: Sun, 1 Jan 2006 01:00:00 GMT
Pragma: no-cache
Cache-Control: must-revalidate, no-cache, private
Set-Cookie: bid="rAlrIPo2jl4"; path=/; domain=.douban.com; expires=Thu, 01-Jan-2009 00:00:00 GMT
4、新华网RSS订阅频道(http://rss.xinhuanet.com/):nginx
[root@new-host ~]# curl --head http://rss.xinhuanet.com/
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 18 Jun 2008 01:18:00 GMT
Content-Type: text/xml
Content-Length: 4592
Last-Modified: Mon, 26 Jun 2006 09:33:54 GMT
Connection: keep-alive
Expires: Wed, 18 Jun 2008 01:24:00 GMT
Cache-Control: max-age=360
Accept-Ranges: bytes
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 18 Jun 2008 01:18:00 GMT
Content-Type: text/xml
Content-Length: 4592
Last-Modified: Mon, 26 Jun 2006 09:33:54 GMT
Connection: keep-alive
Expires: Wed, 18 Jun 2008 01:24:00 GMT
Cache-Control: max-age=360
Accept-Ranges: bytes
5、迅雷安全中心(http://safe.xunlei.com/):nginx/0.6.31
[root@new-host ~]# curl --head http://safe.xunlei.com/
HTTP/1.1 200 OK
Server: nginx/0.6.31
Date: Wed, 18 Jun 2008 02:05:54 GMT
Content-Type: text/html; charset=gb2312
Content-Length: 13060
Last-Modified: Thu, 12 Jun 2008 12:13:03 GMT
Connection: keep-alive
Keep-Alive: timeout=30
Expires: Wed, 25 Jun 2008 02:05:54 GMT
Cache-Control: max-age=604800
Accept-Ranges: bytes
HTTP/1.1 200 OK
Server: nginx/0.6.31
Date: Wed, 18 Jun 2008 02:05:54 GMT
Content-Type: text/html; charset=gb2312
Content-Length: 13060
Last-Modified: Thu, 12 Jun 2008 12:13:03 GMT
Connection: keep-alive
Keep-Alive: timeout=30
Expires: Wed, 25 Jun 2008 02:05:54 GMT
Cache-Control: max-age=604800
Accept-Ranges: bytes
6、腾讯3G下载(http://down.3g.qq.com/):nginx/0.5.33
[root@new-host ~]# curl --head http://down.3g.qq.com/
HTTP/1.1 403 Forbidden
Server: nginx/0.5.33
Date: Thu, 19 Jun 2008 05:50:44 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
HTTP/1.1 403 Forbidden
Server: nginx/0.5.33
Date: Thu, 19 Jun 2008 05:50:44 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Host: down.3g.qq.com
HTTP/1.x 200 OK
Server: nginx/0.5.33
Date: Thu, 19 Jun 2008 02:34:56 GMT
Content-Type: image/gif
Content-Length: 3106
Last-Modified: Wed, 07 May 2008 07:50:10 GMT
Connection: keep-alive
Expires: Fri, 20 Jun 2008 02:34:56 GMT
Cache-Control: max-age=86400
Accept-Ranges: bytes
我的站:
[root@HX01 ~]# curl --head http://www.jysq.net
HTTP/1.1 200 OK
Server: nginx/0.6.31
Date: Thu, 19 Jun 2008 03:20:43 GMT
Content-Type: text/html
Content-Length: 997
Last-Modified: Tue, 03 Jun 2008 12:51:38 GMT
Connection: keep-alive
Accept-Ranges: bytes
做IT的~~
HTTP/1.1 200 OK
Server: nginx/0.6.31
Date: Thu, 03 Jul 2008 03:48:57 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
HTTP/1.1 302 Moved Temporarily
HTTP/1.1 302 Moved Temporarily
Server: nginx/0.6.32
Date: Tue, 08 Jul 2008 12:00:36 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.2.6
Location: bbs/index.php
我的也用了。谢谢楼主,是从楼主这儿了解到的nginx,顺便打个广告。
curl --head http://www.ecshop.com
HTTP/1.1 301 Moved Permanently
Server: nginx/0.6.31
Date: Sat, 19 Jul 2008 10:39:31 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.2.6
Location: http://www.comsenz.com/products/ecshop/
可是国外的IDC大部分还是用Apache ...偶们有什么办法 - - . .
HTTP/1.1 403 Forbidden
Server: nginx/0.7.22
Date: Tue, 16 Dec 2008 04:53:48 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
vps主机租用上也使用这个了
curl --head www.kingsoft.com
HTTP/1.0 200 OK
Date: Wed, 18 Mar 2009 15:06:23 GMT
Server: Apache/2.0.52
Accept-Ranges: bytes
Content-Length: 18575
Content-Type: text/html; charset=GB2312
Content-Language: GB2312
Age: 248
Powered-By-ChinaCache: CHN-WH-4-338 HIT
Connection: close
现在,金山逍遥游戏官网 www.xoyo.com 、金山词霸的爱词霸 www.iciba.com、金山毒霸的网站 www.duba.net 都使用的是 Nginx 服务器。