首页 / NGINX / Nginx做为web服务器的网站
Nginx做为web服务器的网站
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Nginx做为web服务器的网站,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含5498字,纯文字阅读大概需要8分钟。
内容图文
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
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
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
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
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=/
——————————————————————————–
二、使用 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
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
——————————————————————————–
三、使用 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
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
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
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
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
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
本文来自: E点废墟(www.xok.la) 详细出处参考:http://blog.xok.la/2008/08/linux_nginx_web_sserver_site.html
原文:http://my.oschina.net/zhangxc73912/blog/298981
内容总结
以上是互联网集市为您收集整理的Nginx做为web服务器的网站全部内容,希望文章能够帮你解决Nginx做为web服务器的网站所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。