<?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.wemvc.com/tag/nginx/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wemvc.com</link>
	<description>男人的胸怀是委屈撑大的。</description>
	<lastBuildDate>Tue, 10 Jan 2012 04:26:50 +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>Linux安装Nagios监控系统, perl-fcgi, nginx</title>
		<link>http://www.wemvc.com/784.html</link>
		<comments>http://www.wemvc.com/784.html#comments</comments>
		<pubDate>Sat, 17 Jan 2009 00:07:47 +0000</pubDate>
		<dc:creator>精东</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.wemvc.com/?p=784</guid>
		<description><![CDATA[作者：Joshua
日期：2009年1月17日凌晨
非请勿转
安装nagios
与别的软件安装稍有不同，nagios的安装要好几步才能完成。
第一步,执行make install安装主要的程序、CGI及HTML文件;
第二步,执行 make install-commandmode 给外部命令访问nagios配置文件的权限;
第三步,执行 make install-config 把配置文件的例子复制到nagios的安装目录。
按照安装向导的提示，其实这里还有一个 make install-init的步骤，它的作用是把nagios做成一个运行脚本，使nagios随系统开机启动，这是一个很方便的措施。

cd /usr/local/
wget http://nchc.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.6.tar.gz
tar xzf nagios-3.0.6.tar.gz
cd nagios-3.0.6
/usr/sbin/useradd nagios
passwd nagios
/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -G nagcmd nagios
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
vi /usr/local/nagios/etc/objects/contacts.cfg //修改管理员邮件地址

验证Nagios安装
验证程序是否被正确安装。切换目录到安装路径（这里是/usr/local/nagios）,看是否存在 etc、bin、 sbin、 share、 var这五个目录，如果存在则可以表明程序被正确的安装到系统了。五个目录功能的简要说明：
bin Nagios执行程序所在目录，这个目录只有一个文件nagios
etc Nagios配置文件位置，初始安装完后，只有几个*.cfg-sample文件
sbin Nagios Cgi文件所在目录，也就是执行外部命令所需文件所在的目录
Share Nagios网页文件所在的目录
Var Nagios日志文件、spid 等文件所在的目录
安装nagios的插件
没有插件，nagios将什么作用也没有，插件也是nagios扩展功能的强大武器，除了下载常用的插件外，我们还可以根据实际要求编写自己的插件。 Nagios的插件nagios-plugins-1.4.5在www.nagios.org上可以找到，接着我们用wget下载它。注意：插件与 nagios之间的版本关联不大，不一定非得用nagios-plugins-1.4.5这个版本。下载完成后，安装它是很简单的：先执行配置 ./configure –prefix=/usr/local/nagios ,接着编译安装 make ;make install即可。这里需要说明一下的是在配置过程指定的安装路径是/usr/local/nagios，而不是/usr/local/nagios- plus,安装完成后，将在目录/usr/local/nagios生成目录libexec（里面有很多文件），这正是nagios所需要的。

wget http://jaist.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.13.tar.gz
tar xf nagios-plugins-1.4.13.tar.gz
cd nagios-plugins-1.4.13
./configure --with-nagios-user=nagios --with-nagios-group=nagcmd
make
make [...]]]></description>
		<wfw:commentRss>http://www.wemvc.com/784.html/feed</wfw:commentRss>
		<slash:comments>69</slash:comments>
		</item>
		<item>
		<title>nginx防盗链解决方案</title>
		<link>http://www.wemvc.com/528.html</link>
		<comments>http://www.wemvc.com/528.html#comments</comments>
		<pubDate>Fri, 24 Oct 2008 16:48:55 +0000</pubDate>
		<dc:creator>精东</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[防盗链]]></category>

		<guid isPermaLink="false">http://www.wemvc.com/?p=528</guid>
		<description><![CDATA[方法一：
location ~* \.(js&#124;css&#124;jpg&#124;png&#124;gif&#124;others)$ {
valid_referers none blocked *.sasacity.com sasacity.com;
if ($invalid_referer) {
rewrite ^/ http://www.sasacity.com/logo.gif;
#return 404;
}
}
方法二：
使用ngx_http_accesskey_module模块
配置例子：
 location /download {
accesskey             on;
accesskey_hashmethod  md5;
accesskey_arg         "key";
accesskey_signature   "mypass$remote_addr";
}
此时客户端访问路径： http://example.com/download/file.zip?key=09093abeac094.
详细请见：http://wiki.codemongers.com/NginxHttpAccessKeyModule
]]></description>
		<wfw:commentRss>http://www.wemvc.com/528.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx重定向[Rewrite]配置及示例 （for zendframework &amp; wordpress &amp; Discuz）</title>
		<link>http://www.wemvc.com/101.html</link>
		<comments>http://www.wemvc.com/101.html#comments</comments>
		<pubDate>Wed, 13 Aug 2008 05:14:54 +0000</pubDate>
		<dc:creator>精东</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.wemvc.com/?p=101</guid>
		<description><![CDATA[首先Apache的Rewite规则差别不是很大,但是Nginx的Rewrite规则比Apache的简单灵活多了
Nginx可以用if进行条件匹配，语法规则类似C
if ($http_user_agent ~ MSIE) {
rewrite  ^(.*)$  /msie/$1  break;
}
官方文档请点击这里
Rewrite的Flags
Flags can be any of the following:
* last - completes processing of rewrite directives, after which searches for corresponding URI and location
* break - completes processing of rewrite directives
*redirect - returns temporary redirect with code 302; it is used if the substituting line begins with [...]]]></description>
		<wfw:commentRss>http://www.wemvc.com/101.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Restriction of the access with the help of Nginx</title>
		<link>http://www.wemvc.com/29.html</link>
		<comments>http://www.wemvc.com/29.html#comments</comments>
		<pubDate>Mon, 11 Aug 2008 16:24:12 +0000</pubDate>
		<dc:creator>精东</dc:creator>
				<category><![CDATA[服务器]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.wemvc.com/?p=29</guid>
		<description><![CDATA[In this short post the point is how to protect your files and some part of your web site with a user password. With Nginx, a lot of options exist to protect your site with usernames and passwords. In Nginx the solution is not less attractive than in apache.
In the configuration file, set folder to [...]]]></description>
		<wfw:commentRss>http://www.wemvc.com/29.html/feed</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
	</channel>
</rss>

