<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>臭皮匠 &#187; nginx</title>
	<atom:link href="http://guogoul.com/tag/nginx-technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://guogoul.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Oct 2010 00:24:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>nginx静态压缩(ngx_http_gzip_static_module)</title>
		<link>http://guogoul.com/2009/06/14/ngx_http_gzip_static_module/</link>
		<comments>http://guogoul.com/2009/06/14/ngx_http_gzip_static_module/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 12:29:27 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Web开发]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://john.renren.in/?p=123</guid>
		<description><![CDATA[在搭建squid网页加速的时候，对于大的css 或者js要进行压缩,然后再进行缓存,这样能够提高减小下载量提高页面响应速度。如果你用的是squid 3.0以前的版本并且用的是 ngnix server的话可能会碰到如下问题： 不用squid直接打开页面则客户端返回的是压缩的状态，如果启用squid加速会发现下载下来的页面不是压缩状态。这里面主要是没有启动ngnix 的静态缓存模块(ngx_http_gzip_static_module)导致。打开静态缓存问题就解决了
1.nginx编译选项
./configure --with-http_gzip_static_module
2.修改nginx.conf

gzip_static on;
gzip_http_version   1.1;
gzip_proxied        expired no-cache no-store private auth;
gzip_disable        "MSIE [1-6] \.";
gzip_vary           on;

参考：
1.http://wiki.nginx.org/NginxHttpGzipStaticModule
2.http://bbs.chinaunix.net/viewthread.php?tid=1329820
]]></description>
		<wfw:commentRss>http://guogoul.com/2009/06/14/ngx_http_gzip_static_module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx系列(4):实现负载均衡（ngx_http_upstream）</title>
		<link>http://guogoul.com/2008/07/13/nginx_4/</link>
		<comments>http://guogoul.com/2008/07/13/nginx_4/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 10:57:11 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[ngx_http_upstream]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/07/13/nginx_4/</guid>
		<description><![CDATA[在web应用中，当网站的访问量大的时候很自然的就会想到用多台web服务器集群去分担单台访问的压力，对于小的网站，自然没有大量的现金去买优秀的负载均衡的硬件设备.那么nginx做代理前端实现负载均衡的目的会是一个很好的选择。
简单的例子:
upstream load_balance {
        server localhost:8088 ;
        server 192.168.1.4:8080 down;
        server home.ucenter weight=2;
        server backserver:9100 backup;
}
server {
        listen 80;
   [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/07/13/nginx_4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>nginx系列(3):实现反向代理</title>
		<link>http://guogoul.com/2008/07/13/nginx_3/</link>
		<comments>http://guogoul.com/2008/07/13/nginx_3/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 09:19:54 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[proxy_pass]]></category>
		<category><![CDATA[反向代理]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/07/13/nginx_3/</guid>
		<description><![CDATA[反向代理又称为服务器加速Server accelerate)，原理是将用户的请求转发到目标服务器，然后将结果转发给用户。这样能够保护目标服务器安全、负载均衡容易实现、有点类似防火墙。关于apache实现反向代理已经在前面(用mod_proxy实现反向代理)介绍过了。这边继续补充一下nginx实现的反向代理。
下面先晒一下nginx的配置:
server {
        listen 80;
        server_name home.ucenter;
        access_log  /var/log/nginx/home.ucenter.access.log;
        location / {
               [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/07/13/nginx_3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx系列(2):apache与nginx+php cgi性能比较</title>
		<link>http://guogoul.com/2008/07/08/nginx_2/</link>
		<comments>http://guogoul.com/2008/07/08/nginx_2/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 16:09:48 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[技巧]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/07/08/nginx_2/</guid>
		<description><![CDATA[听说nginx性能是apache的10倍，可同时处理并发3W请求。只是听说而已自己没有证明过，今天 没事就用webbench测试一下看看到底有多大差距呢！
由于没有专业的环境，只能用我这个快要淘汰的本本上试一试了。nginx的性能如果可以并发3w不挂的话，我的机器早就升天了。我想先测试并发2000看看效果。
1.先拿apache开刀:
  用apache的默认配置没有进行修改.真是受不了，我的pc基本上处于假死状态,可能已死呵呵。不过我还坚持实验了两组:
第一组:
$ webbench -t 20 -c 2000 http://home.ucenter:8080/test.php
Webbench &#8211; Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://home.ucenter:8080/test.php
2000 clients, running 20 sec.
Speed=62814 pages/min, 294224 bytes/sec.
Requests: 20938 susceed, 0 failed.
难怪假死我的是p4 1.8的cpu，load 都到了12了，真是难为我的机器了

第二组:
$ webbench -t 20 -c 2000 http://home.ucenter:8080/test.php
Webbench &#8211; Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/07/08/nginx_2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>nginx系列(1)：快速搭建nginx + php fastcgi系统</title>
		<link>http://guogoul.com/2008/07/05/nginx_1/</link>
		<comments>http://guogoul.com/2008/07/05/nginx_1/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 15:24:05 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[lighttpd]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/07/05/nginx_1/</guid>
		<description><![CDATA[nginx历吏比较短，由俄罗斯人编写，以性能卓越闻名。国内用nginx做server的公司还不多，相关的学习文档还不是很完全。边学边记，共同学习。
首先分享一下搭建nginx心得.其实在ubuntu下面建立nginx平台还是十分的简单，只不过本人用linux系统的不长以及nginx的相关文档比较少，以至在前期走了不少的弯路.
1. 测试平台: ubuntu8.04
2.安装nginx  1)sudo apt-get install nginx   2)相关路径：      conf:  /etc/nginx/nginx.conf      bin:    /usr/sbin/nginx      vhost: /etc/nginx/sites-enable/default      cgi-params: /etc/nginx/fastcgi-params  3)例子:建一个虚拟server       在/etc/nginx/sites-enable/default中添加以下代码    [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/07/05/nginx_1/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

