<?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://www.hebaodans.com/category/nginx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hebaodans.com</link>
	<description>好的心态是成功的开始</description>
	<lastBuildDate>Tue, 20 Jul 2010 17:32:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Nginx iptables屏蔽单个Web页面过于频繁的IP 防DDOS 恶意访问 采集器</title>
		<link>http://www.hebaodans.com/2010/06/nginx-iptables%e5%b1%8f%e8%94%bd%e5%8d%95%e4%b8%aaweb%e9%a1%b5%e9%9d%a2%e8%bf%87%e4%ba%8e%e9%a2%91%e7%b9%81%e7%9a%84ip-%e9%98%b2ddos-%e6%81%b6%e6%84%8f%e8%ae%bf%e9%97%ae-%e9%87%87%e9%9b%86%e5%99%a8/</link>
		<comments>http://www.hebaodans.com/2010/06/nginx-iptables%e5%b1%8f%e8%94%bd%e5%8d%95%e4%b8%aaweb%e9%a1%b5%e9%9d%a2%e8%bf%87%e4%ba%8e%e9%a2%91%e7%b9%81%e7%9a%84ip-%e9%98%b2ddos-%e6%81%b6%e6%84%8f%e8%ae%bf%e9%97%ae-%e9%87%87%e9%9b%86%e5%99%a8/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 15:16:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx cc]]></category>
		<category><![CDATA[nginx ddos]]></category>
		<category><![CDATA[Nginx iptables]]></category>
		<category><![CDATA[nginx自动屏蔽ip]]></category>
		<category><![CDATA[nginx采集]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=1202</guid>
		<description><![CDATA[<p>通过分析nginx的日志来过滤出访问过于频繁的IP地址，然后添加到nginx的blockip.conf，并重启nginx
脚本如下:
#!/bin/sh
nginx_home = /Data/app_1/nginx
log_path = /Data/logs
/usr/bin/tail -n50000 $log_path/access.log \
|awk ‘$8 ~/aspx/{print $2,$13}’ \
|grep -i -v -E <a href='http://www.hebaodans.com/2010/06/nginx-iptables%e5%b1%8f%e8%94%bd%e5%8d%95%e4%b8%aaweb%e9%a1%b5%e9%9d%a2%e8%bf%87%e4%ba%8e%e9%a2%91%e7%b9%81%e7%9a%84ip-%e9%98%b2ddos-%e6%81%b6%e6%84%8f%e8%ae%bf%e9%97%ae-%e9%87%87%e9%9b%86%e5%99%a8/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>通过分析nginx的日志来过滤出访问过于频繁的IP地址，然后添加到nginx的blockip.conf，并重启nginx
脚本如下:
#!/bin/sh
nginx_home = /Data/app_1/nginx
log_path = /Data/logs
/usr/bin/tail -n50000 $log_path/access.log \
|awk ‘$8 ~/aspx/{print $2,$13}’ \
|grep -i -v -E <a href='http://www.hebaodans.com/2010/06/nginx-iptables%e5%b1%8f%e8%94%bd%e5%8d%95%e4%b8%aaweb%e9%a1%b5%e9%9d%a2%e8%bf%87%e4%ba%8e%e9%a2%91%e7%b9%81%e7%9a%84ip-%e9%98%b2ddos-%e6%81%b6%e6%84%8f%e8%ae%bf%e9%97%ae-%e9%87%87%e9%9b%86%e5%99%a8/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2010/06/nginx-iptables%e5%b1%8f%e8%94%bd%e5%8d%95%e4%b8%aaweb%e9%a1%b5%e9%9d%a2%e8%bf%87%e4%ba%8e%e9%a2%91%e7%b9%81%e7%9a%84ip-%e9%98%b2ddos-%e6%81%b6%e6%84%8f%e8%ae%bf%e9%97%ae-%e9%87%87%e9%9b%86%e5%99%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx源代码分析</title>
		<link>http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-dai-ma-fen-xi/</link>
		<comments>http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-dai-ma-fen-xi/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 15:33:46 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx源代码分析]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=699</guid>
		<description><![CDATA[<p>
Nginx可以开启多个进程，每个进程拥有最大上限128个子线程以及一定的可用连接数。如果你希望使用线程可以在配置文件中设置worker_threads这个参数，但这个参数在Nginx官方手册上没有。只有通过阅读源代码才看到。最大客户端连接数等于进程数与连接数的乘积，连接是在主进程中初始化的，一开始所有连接处于空闲状态。
每一个客户端请求进来以后会通过事件处理机制，在Linux是Epoll，在FreeBSD下是KQueue放到空闲的连接里。
如果设置了线程数，那么被填充的连接会在子线程中处理，否则会在主线程中依次处理。
如果解析出是动态脚本请求，会根据fast-cgi的设置访问php-cgi进程，php进程数量的多少依据php-fpm.conf中max_children的设置。
因此Nginx的动态请求能力不仅仅依靠Nginx本身的设置，还要调试php-fpm。
从源代码级别上看nginx由以下几个元素组成：
1. <a href='http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-dai-ma-fen-xi/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>
Nginx可以开启多个进程，每个进程拥有最大上限128个子线程以及一定的可用连接数。如果你希望使用线程可以在配置文件中设置worker_threads这个参数，但这个参数在Nginx官方手册上没有。只有通过阅读源代码才看到。最大客户端连接数等于进程数与连接数的乘积，连接是在主进程中初始化的，一开始所有连接处于空闲状态。
每一个客户端请求进来以后会通过事件处理机制，在Linux是Epoll，在FreeBSD下是KQueue放到空闲的连接里。
如果设置了线程数，那么被填充的连接会在子线程中处理，否则会在主线程中依次处理。
如果解析出是动态脚本请求，会根据fast-cgi的设置访问php-cgi进程，php进程数量的多少依据php-fpm.conf中max_children的设置。
因此Nginx的动态请求能力不仅仅依靠Nginx本身的设置，还要调试php-fpm。
从源代码级别上看nginx由以下几个元素组成：
1. <a href='http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-dai-ma-fen-xi/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-dai-ma-fen-xi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx源码目录结构、程序编译流程、如何构建学习nginx的环境</title>
		<link>http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-ma-mu-lu-jie-gou-cheng-xu-bian-yi-liu-cheng-ru-he-gou-jian-xue-xi-n-g-i-n-x-de-huan-jing/</link>
		<comments>http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-ma-mu-lu-jie-gou-cheng-xu-bian-yi-liu-cheng-ru-he-gou-jian-xue-xi-n-g-i-n-x-de-huan-jing/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 09:49:16 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx学习环境]]></category>
		<category><![CDATA[nginx源码]]></category>
		<category><![CDATA[nginx源码目录结构]]></category>
		<category><![CDATA[nginx编译]]></category>
		<category><![CDATA[如何构建学习nginx的环境]]></category>
		<category><![CDATA[程序编译流程]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=686</guid>
		<description><![CDATA[<p>作者:张立冰
出处:http://www.libing.name/2009/02/27/understand-nginx-source-code-directory.html
本文主要简单介绍nginx源码目录结构、程序编译流程、如何构建学习nginx的环境等。
本文以及后续nginx源码分析文章是基于nginx当前(2009-02-27)的稳定版本0.6.35进行的分析,该版本的src目录下共有96615行代码，共记234个源码文件。
注：本系统的文章为本人学习做笔记用，为源码分析，而非模块的编写，可能会存在问题。
1.1 <a href='http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-ma-mu-lu-jie-gou-cheng-xu-bian-yi-liu-cheng-ru-he-gou-jian-xue-xi-n-g-i-n-x-de-huan-jing/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>作者:张立冰
出处:http://www.libing.name/2009/02/27/understand-nginx-source-code-directory.html
本文主要简单介绍nginx源码目录结构、程序编译流程、如何构建学习nginx的环境等。
本文以及后续nginx源码分析文章是基于nginx当前(2009-02-27)的稳定版本0.6.35进行的分析,该版本的src目录下共有96615行代码，共记234个源码文件。
注：本系统的文章为本人学习做笔记用，为源码分析，而非模块的编写，可能会存在问题。
1.1 <a href='http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-ma-mu-lu-jie-gou-cheng-xu-bian-yi-liu-cheng-ru-he-gou-jian-xue-xi-n-g-i-n-x-de-huan-jing/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/12/n-g-i-n-x-yuan-ma-mu-lu-jie-gou-cheng-xu-bian-yi-liu-cheng-ru-he-gou-jian-xue-xi-n-g-i-n-x-de-huan-jing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NGINX 502 Bad Gateway 用upstream解决方法</title>
		<link>http://www.hebaodans.com/2009/09/n-g-i-n-x-5-0-2-b-a-d-g-a-t-e-w-a-y-yong-u-p-p-s-t-r-e-a-m-jie-jue-fang-fa/</link>
		<comments>http://www.hebaodans.com/2009/09/n-g-i-n-x-5-0-2-b-a-d-g-a-t-e-w-a-y-yong-u-p-p-s-t-r-e-a-m-jie-jue-fang-fa/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 15:28:15 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=645</guid>
		<description><![CDATA[NGINX 502 Bad Gateway错误以前遇到过，不过不是常发生，所以也没什么注意，不过今天在网上看到一个方法错误...]]></description>
			<content:encoded><![CDATA[<p>NGINX 502 Bad <a href='http://www.hebaodans.com/2009/09/n-g-i-n-x-5-0-2-b-a-d-g-a-t-e-w-a-y-yong-u-p-p-s-t-r-e-a-m-jie-jue-fang-fa/' rel="nofollow">Continue Reading</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/09/n-g-i-n-x-5-0-2-b-a-d-g-a-t-e-w-a-y-yong-u-p-p-s-t-r-e-a-m-jie-jue-fang-fa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx的http session管理</title>
		<link>http://www.hebaodans.com/2009/09/n-g-i-n-x-de-h-t-t-p-s-e-s-s-i-o-n-guan-li/</link>
		<comments>http://www.hebaodans.com/2009/09/n-g-i-n-x-de-h-t-t-p-s-e-s-s-i-o-n-guan-li/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 14:47:03 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=643</guid>
		<description><![CDATA[http session，基本上可以认为就是我们平常所理解的完成GET或者POST请求的HTTP应用的TCP Session。

从自...]]></description>
			<content:encoded><![CDATA[<p>http session，基本上可以认为就是我们平常所理解的完成GET或者POST请求的HTTP应用的TCP <a href='http://www.hebaodans.com/2009/09/n-g-i-n-x-de-h-t-t-p-s-e-s-s-i-o-n-guan-li/' rel="nofollow">Continue Reading</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/09/n-g-i-n-x-de-h-t-t-p-s-e-s-s-i-o-n-guan-li/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx php-fastcgi负载均衡</title>
		<link>http://www.hebaodans.com/2009/09/n-g-i-n-x-p-h-p-f-a-s-t-c-g-i-fu-zai-jun-heng/</link>
		<comments>http://www.hebaodans.com/2009/09/n-g-i-n-x-p-h-p-f-a-s-t-c-g-i-fu-zai-jun-heng/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 14:44:29 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=641</guid>
		<description><![CDATA[配置还是非常简单的，充分体现了nginx的强大与配置的简单^^下面是大致的服务器结构图：


应用的最前端是...]]></description>
			<content:encoded><![CDATA[<p>配置还是非常简单的，充分体现了nginx的强大与配置的简单^^下面是大致的服务器结构图：

应用的最前端是一台nginx服务器，所有静态的内容都由nginx来处理，而将所有php的请求都分摊到下游的若干台运行php <a href='http://www.hebaodans.com/2009/09/n-g-i-n-x-p-h-p-f-a-s-t-c-g-i-fu-zai-jun-heng/' rel="nofollow">Continue Reading</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/09/n-g-i-n-x-p-h-p-f-a-s-t-c-g-i-fu-zai-jun-heng/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx php 在 daemontools 下运行, 永不当机配置</title>
		<link>http://www.hebaodans.com/2009/09/n-g-i-n-x-p-h-p-zai-d-a-e-m-o-n-t-o-o-l-s-xia-yun-xing-yong-bu-dang-ji-pei-zhi-2/</link>
		<comments>http://www.hebaodans.com/2009/09/n-g-i-n-x-p-h-p-zai-d-a-e-m-o-n-t-o-o-l-s-xia-yun-xing-yong-bu-dang-ji-pei-zhi-2/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 03:57:58 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/index.php/2009/09/n-g-i-n-x-p-h-p-zai-d-a-e-m-o-n-t-o-o-l-s-xia-yun-xing-yong-bu-dang-ji-pei-zhi/</guid>
		<description><![CDATA[以下均为Linux 平台配置

1. 首先假设你已经可以使 nginx + php 在 fastcgi 模式下运行 (如果不会，请参考...]]></description>
			<content:encoded><![CDATA[<p>以下均为Linux 平台配置
1. 首先假设你已经可以使 nginx + php 在 fastcgi 模式下运行 (如果不会，请参考nginx 资料)
2. 安装djb daemontools
脚本如下
mkdir -p /package
chmod 1755 /package/
cd /package/
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
tar <a href='http://www.hebaodans.com/2009/09/n-g-i-n-x-p-h-p-zai-d-a-e-m-o-n-t-o-o-l-s-xia-yun-xing-yong-bu-dang-ji-pei-zhi-2/' rel="nofollow">Continue Reading</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/09/n-g-i-n-x-p-h-p-zai-d-a-e-m-o-n-t-o-o-l-s-xia-yun-xing-yong-bu-dang-ji-pei-zhi-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx启动关闭重启的shell脚本</title>
		<link>http://www.hebaodans.com/2009/09/n-g-i-n-x-qi-dong-guan-bi-zhong-qi-de-s-h-e-l-l-jiao-ben/</link>
		<comments>http://www.hebaodans.com/2009/09/n-g-i-n-x-qi-dong-guan-bi-zhong-qi-de-s-h-e-l-l-jiao-ben/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 00:13:51 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=624</guid>
		<description><![CDATA[#vi /etc/init.d/nginx
#! /bin/sh
### BEGIN INIT INFO
# Provides:           Nginx-php-fp...]]></description>
			<content:encoded><![CDATA[<p>#vi /etc/init.d/nginx
#! /bin/sh
### BEGIN INIT INFO
# Provides:           Nginx-php-fpm(fastcgi)
# Required-Start:     $all
# Required-Stop:      $all
# Default-Start:      3 5
# Default-Stop:       0 1 6
# Short-Description: Start and stop nginx-fcgi in external <a href='http://www.hebaodans.com/2009/09/n-g-i-n-x-qi-dong-guan-bi-zhong-qi-de-s-h-e-l-l-jiao-ben/' rel="nofollow">Continue Reading</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/09/n-g-i-n-x-qi-dong-guan-bi-zhong-qi-de-s-h-e-l-l-jiao-ben/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx 502 bad故障原因及解决方法收集</title>
		<link>http://www.hebaodans.com/2009/05/n-g-i-n-x-5-0-2-b-a-d-gu-zhang-yuan-yin-ji-jie-jue-fang-fa-shou-ji/</link>
		<comments>http://www.hebaodans.com/2009/05/n-g-i-n-x-5-0-2-b-a-d-gu-zhang-yuan-yin-ji-jie-jue-fang-fa-shou-ji/#comments</comments>
		<pubDate>Fri, 15 May 2009 00:44:07 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[502 bad gateway]]></category>
		<category><![CDATA[nginx 502]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=418</guid>
		<description><![CDATA[<p>如题，最近网站频繁出现502错误，简直无法正常运转，出现这种情况大多是php-cgi超时没有返回信息,或进程僵死等情况造成的，参考张宴的这篇关于502错误的解决办法(http://blog.s135.com/read.php?361)，并咨询系统管理员高手，我们的nginx已经配置到极致这些都已经老早做过修改了，但现在又出然出现。
经过分析将nginx的error <a href='http://www.hebaodans.com/2009/05/n-g-i-n-x-5-0-2-b-a-d-gu-zhang-yuan-yin-ji-jie-jue-fang-fa-shou-ji/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>如题，最近网站频繁出现502错误，简直无法正常运转，出现这种情况大多是php-cgi超时没有返回信息,或进程僵死等情况造成的，参考张宴的这篇关于502错误的解决办法(http://blog.s135.com/read.php?361)，并咨询系统管理员高手，我们的nginx已经配置到极致这些都已经老早做过修改了，但现在又出然出现。
经过分析将nginx的error <a href='http://www.hebaodans.com/2009/05/n-g-i-n-x-5-0-2-b-a-d-gu-zhang-yuan-yin-ji-jie-jue-fang-fa-shou-ji/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/05/n-g-i-n-x-5-0-2-b-a-d-gu-zhang-yuan-yin-ji-jie-jue-fang-fa-shou-ji/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>强大的负载均衡+静态文件WEB服务器 nginx实战</title>
		<link>http://www.hebaodans.com/2009/03/qiang-da-de-fu-zai-jun-heng-jing-tai-wen-jian-w-e-b-fu-wu-qi-n-g-i-n-x-shi-zhan/</link>
		<comments>http://www.hebaodans.com/2009/03/qiang-da-de-fu-zai-jun-heng-jing-tai-wen-jian-w-e-b-fu-wu-qi-n-g-i-n-x-shi-zhan/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 02:47:40 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx实例]]></category>
		<category><![CDATA[nginx负载均衡]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=341</guid>
		<description><![CDATA[<p>  当前比较流行的负载均衡前端服务器主要有apache(with mod_proxy)，nginx，lighttpd，squid，perlbal，pound，或者如果你的域名服务商提供DNS级别的负载均衡，也可以（就是一个域名随机指向多个IP，定制性不高）。
    <a href='http://www.hebaodans.com/2009/03/qiang-da-de-fu-zai-jun-heng-jing-tai-wen-jian-w-e-b-fu-wu-qi-n-g-i-n-x-shi-zhan/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>  当前比较流行的负载均衡前端服务器主要有apache(with mod_proxy)，nginx，lighttpd，squid，perlbal，pound，或者如果你的域名服务商提供DNS级别的负载均衡，也可以（就是一个域名随机指向多个IP，定制性不高）。
    <a href='http://www.hebaodans.com/2009/03/qiang-da-de-fu-zai-jun-heng-jing-tai-wen-jian-w-e-b-fu-wu-qi-n-g-i-n-x-shi-zhan/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/03/qiang-da-de-fu-zai-jun-heng-jing-tai-wen-jian-w-e-b-fu-wu-qi-n-g-i-n-x-shi-zhan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apach htaccess 转换成 nginx rewrite rule</title>
		<link>http://www.hebaodans.com/2009/03/a-p-a-c-h-h-t-a-c-c-e-s-s-zhuan-huan-cheng-n-g-i-n-x-r-e-w-r-i-t-e-r-u-l-e/</link>
		<comments>http://www.hebaodans.com/2009/03/a-p-a-c-h-h-t-a-c-c-e-s-s-zhuan-huan-cheng-n-g-i-n-x-r-e-w-r-i-t-e-r-u-l-e/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 22:50:52 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[apach htaccess]]></category>
		<category><![CDATA[apach重写规则转换nginx]]></category>
		<category><![CDATA[nginx rewrite 规则]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=338</guid>
		<description><![CDATA[<p>http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
 <a href='http://www.hebaodans.com/2009/03/a-p-a-c-h-h-t-a-c-c-e-s-s-zhuan-huan-cheng-n-g-i-n-x-r-e-w-r-i-t-e-r-u-l-e/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
 <a href='http://www.hebaodans.com/2009/03/a-p-a-c-h-h-t-a-c-c-e-s-s-zhuan-huan-cheng-n-g-i-n-x-r-e-w-r-i-t-e-r-u-l-e/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/03/a-p-a-c-h-h-t-a-c-c-e-s-s-zhuan-huan-cheng-n-g-i-n-x-r-e-w-r-i-t-e-r-u-l-e/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx+php 502 bad gateway解决方法</title>
		<link>http://www.hebaodans.com/2009/03/n-g-i-n-x-p-h-p-5-0-2-b-a-d-g-a-t-e-w-a-y-jie-jue-fang-fa/</link>
		<comments>http://www.hebaodans.com/2009/03/n-g-i-n-x-p-h-p-5-0-2-b-a-d-g-a-t-e-w-a-y-jie-jue-fang-fa/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 09:32:16 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[502]]></category>
		<category><![CDATA[bad gateway]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.hebaodans.com/?p=330</guid>
		<description><![CDATA[<p>打开 /usr/local/php/etc/php-fpm.conf
      调大以下两个参数(根据服务器实际情况，过大也不行）
    &lt;value name=&#8221;max_children&#8221;&gt;1280&lt;/value&gt;
      &lt;value name=&#8221;max_requests&#8221;&gt;1000&lt;/value&gt;
可同时参看 nginx 502 <a href='http://www.hebaodans.com/2009/03/n-g-i-n-x-p-h-p-5-0-2-b-a-d-g-a-t-e-w-a-y-jie-jue-fang-fa/' rel="nofollow">Continue Reading</a></p>]]></description>
			<content:encoded><![CDATA[<p>打开 /usr/local/php/etc/php-fpm.conf
      调大以下两个参数(根据服务器实际情况，过大也不行）
    &lt;value name=&#8221;max_children&#8221;&gt;1280&lt;/value&gt;
      &lt;value name=&#8221;max_requests&#8221;&gt;1000&lt;/value&gt;
可同时参看 nginx 502 <a href='http://www.hebaodans.com/2009/03/n-g-i-n-x-p-h-p-5-0-2-b-a-d-g-a-t-e-w-a-y-jie-jue-fang-fa/' rel="nofollow">Continue Reading</a></p><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.hebaodans.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.hebaodans.com/2009/03/n-g-i-n-x-p-h-p-5-0-2-b-a-d-g-a-t-e-w-a-y-jie-jue-fang-fa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
