﻿<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BRAVO ATANS]]></title> 
<link>http://www.atans.cn/index.php</link> 
<description><![CDATA[nothing]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BRAVO ATANS]]></copyright>
<item>
<link>http://www.atans.cn/nginx-0-8-32/</link>
<title><![CDATA[Nginx 0.8.32 发布]]></title> 
<author>atans &lt;admin@yourname.com&gt;</author>
<category><![CDATA[nginx]]></category>
<pubDate>Fri, 15 Jan 2010 06:34:56 +0000</pubDate> 
<guid>http://www.atans.cn/nginx-0-8-32/</guid> 
<description>
<![CDATA[ 
	<p><img alt="Nginx logo" style="float: left" src="http://centos.alt.ru/picts/nginx.png" /><br />
<strong>Nginx</strong> (&quot;engine x&quot;) 是一个高性能的 HTTP 和 反向代理 服务器，也是一个 IMAP/POP3/SMTP 代理服务器 。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的Rambler.ru 站点开发的，它已经在该站点运行超过四年多了。<br />
<br />
Igor 将源代码以类BSD许可证的形式发布。自Nginx 发布四年来，Nginx 已经因为它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名了。<br />
<br />
目前国内各大门户网站已经部署了Nginx，如新浪、网易、腾讯等；国内几个重要的视频分享网站也部署了Nginx，如六房间、酷6等。新近发现Nginx 技术在国内日趋火热，越来越多的网站开始部署Nginx。</p>
<p>nginx 0.8.32 更新 11 Jan 2010<br />
<br />
*)修正：UTF- 8的编码在ngx_http_autoindex_module使用.<br />
<br />
*) 修正：正则表达式命名捕捉工作了两个名称。. <br />
<br />
*) Bugfix: now the &quot;localhost&quot; name is used in the &quot;Host&quot; request <br />
header line, if an unix domain socket is defined in the &quot;auth_http&quot; <br />
directive.<br />
<br />
*) 修正：nginx的没有，也不支持201块传输编码反应。<br />
<br />
*) Bugfix: if the &quot;expires modified&quot; set date in the past, the a <br />
negative number was set in the &quot;Cache-Control&quot; response header <br />
line.<br />
&nbsp;</p>
<p>下载网址:<a href="http://nginx.org/en/download.html">http://nginx.org/en/download.html</a></p><br/>Tags - <a href="http://www.atans.cn/tags/nginx/" rel="tag">nginx</a>
]]>
</description>
</item><item>
<link>http://www.atans.cn/post/109/</link>
<title><![CDATA[nginx 目录自动加斜线 /]]></title> 
<author>atans &lt;admin@yourname.com&gt;</author>
<category><![CDATA[nginx]]></category>
<pubDate>Thu, 14 Jan 2010 07:02:53 +0000</pubDate> 
<guid>http://www.atans.cn/post/109/</guid> 
<description>
<![CDATA[ 
	<p>最佳方法在nginx.conf加入<br />
http{<br />
...<br />
<strong><span style="color: #ff0000">server_name_in_redirect off;<br />
</span></strong>...<br />
}</p>
<p>国内搜索到两种方法<br />
<strong>第一种方法</strong> 用rewrite补上/<br />
if (-d $request_filename){ rewrite ^/(.*)([^/])$ /$1$2/ permanent; }<br />
<br />
<strong>第二种方法 </strong><br />
<span style="color: #ff0000">optimize_server_names off; <br />
</span><strong><span style="color: #ff0000"><span style="color: #ff0000">#optimize_server_names </span>已不支持了 nginx 0.8 加上这个会报错的 </span></strong><br />
server_name_in_redirect off;</p>
<p>官方<a href="http://wiki.nginx.org/NginxHttpCoreModule#optimize_server_names">http://wiki.nginx.org/NginxHttpCoreModule#optimize_server_names</a>说明 <br />
Note: this directive is <strong>deprecated</strong> in nginx 0.7.x, use <a title="" href="http://wiki.nginx.org/NginxHttpCoreModule#server_name_in_redirect">server_name_in_redirect</a> instead.<br />
备注 这指令nginx 0.7.x已不支持,用server_name_in_redirect代替</p>
<p>&nbsp;</p><br/>Tags - <a href="http://www.atans.cn/tags/nginx/" rel="tag">nginx</a>
]]>
</description>
</item><item>
<link>http://www.atans.cn/post/108/</link>
<title><![CDATA[隐藏nginx 版本号]]></title> 
<author>atans &lt;admin@yourname.com&gt;</author>
<category><![CDATA[nginx]]></category>
<pubDate>Wed, 13 Jan 2010 06:26:50 +0000</pubDate> 
<guid>http://www.atans.cn/post/108/</guid> 
<description>
<![CDATA[ 
	<p># curl --head <a href="http://www.nginx.org">www.nginx.org</a><br />
HTTP/1.1 200 OK<br />
Server: nginx/<strong><span style="color: #ff0000">0.8.31<br />
</span></strong>Date: Wed, 13 Jan 2010 06:17:30 GMT<br />
Content-Type: text/html<br />
Content-Length: 2341<br />
Last-Modified: Mon, 11 Jan 2010 15:45:11 GMT<br />
Connection: keep-alive<br />
Keep-Alive: timeout=15<br />
Accept-Ranges: bytes<br />
这样一下子就给人家看到你的服务器nginx版本是0.8.31</p>
<p>可以不显示不？<br />
当然可以<br />
#vi nginx.conf<br />
在http 加上 <span style="color: #ff0000">server_tokens off;</span><br />
<br /><div class="quote"><div class="quote-title">引用</div><div class="quote-content">http {<br />
......省略配置<br />
sendfile on;<br />
tcp_nopush on;<br />
keepalive_timeout 65;<br />
tcp_nodelay on;<br />
<span style="color: #ff0000">server_tokens off;</span><br />
.......省略配置<br />
}</div></div><br />
<br />
编辑php-fpm配置文件 如fcgi.conf 、fastcgi.conf（要看你是什么配置文件名） <br /><div class="quote"><div class="quote-title">引用</div><div class="quote-content">fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;<br />
改为<br />
fastcgi_param SERVER_SOFTWARE nginx;</div></div><br />
nginx重新加载配置就完成了 404 501等页面都不会显示nginx版本 太棒了</p>
<p>#curl --head 127.0.0.1<br />
HTTP/1.1 200 OK<br />
<span style="color: #ff0000">Server: nginx</span><br />
Date: Wed, 13 Jan 2010 06:25:01 GMT<br />
Content-Type: text/html<br />
Content-Length: 793<br />
Last-Modified: Sat, 12 Dec 2009 02:28:16 GMT<br />
Connection: keep-alive<br />
Accept-Ranges: bytes</p><br/>Tags - <a href="http://www.atans.cn/tags/nginx/" rel="tag">nginx</a>
]]>
</description>
</item><item>
<link>http://www.atans.cn/post/107/</link>
<title><![CDATA[nginx rewrite 统一域名的方法]]></title> 
<author>atans &lt;admin@yourname.com&gt;</author>
<category><![CDATA[nginx]]></category>
<pubDate>Wed, 13 Jan 2010 04:03:59 +0000</pubDate> 
<guid>http://www.atans.cn/post/107/</guid> 
<description>
<![CDATA[ 
	<p>在ename添加域名转发 atans.cn 转向 <a href="http://www.atans.cn">www.atans.cn</a><br />
ename.cn 的域名转发要人工审核 你不吹它 永不给你审核url域名转发<br />
而且ename.cn 的域名转发反应实在太慢<br />
倒不如自己用nginx做个rewrite重定向<br />
&nbsp;</p>
<p>forum.nginx .org <strong>Rob Schultz</strong> nginx专家提供的解决方案</p>
<p>统一使用<a href="http://www.atans.cn">www.atans.cn</a>访问网站<br />
atans.cn 会被重定向到 <strong>www.atans.cn</strong><br />
atans.cn/post/107/ 也会被重定向到<strong> www.atans.cn/post/107/</strong><br />
&nbsp;</p>
<p>编辑nginx.conf<br />
<span style="color: #ff0000">#这个将负责atans.cn永久重定向到</span><span style="color: #ff0000">www.atans.cn</span><br /><div class="quote"><div class="quote-title">引用</div><div class="quote-content">#只作atans.cn转向<a href="http://www.atans.cn">www.atans.cn</a><br />
server {<br />
listen 80;<br />
server_name atans.cn;<br />
access_log off;<br />
rewrite ^ http://www.atans.cn$request_uri permanent;<br />
}<br />
#www.atans.cn 主要配置<br />
server {<br />
listen 80:<br />
server_name www.atans.cn;<br />
#配置内容...<br />
}</div></div><br />
算是比较好的方案 <br />
<strong>优点</strong><br />
只有访问atans.cn 才会重定向到<a href="http://www.atans.cn">www.atans.cn</a><br />
访问 <a href="http://www.atans.cn">www.atans.cn</a> 不受server atans.cn rewrite的影响<br />
<strong>缺点</strong><br />
要用到两个server { } <br />
&nbsp;</p>
<p>在国内可以搜索到用if($host !='www.atans.cn') 的方法<br /><div class="quote"><div class="quote-title">引用</div><div class="quote-content">server{<br />
<br />
listen 80;<br />
server_name atans.cn <a href="http://www.atans.cn/">www.atans.cn</a><br />
if ($host != 'www.atans.cn) {<br />
rewrite ^/(.*)$ <a href="http://www.atans.cn/$1">http://www.atans.cn/$1</a> permanent;<br />
}<br />
<br />
}</div></div><br />
<br />
<strong>优点</strong><br />
一个server{}解决了<br />
<strong>缺点</strong><br />
<span style="color: #ff0000">不管访问atans.cn还是<a href="http://www.atans.cn">www.atans.cn</a> <br />
每个客户端都nginx要作一次if()的判断访问域名是不是<a href="http://www.atans.cn">www.atans.cn</a> <br />
浪费资源</span></p>
<p>转载注明来源 <a href="http://www.atans.cn/post/107/">http://www.atans.cn/post/107/</a></p><br/>Tags - <a href="http://www.atans.cn/tags/nginx/" rel="tag">nginx</a> , <a href="http://www.atans.cn/tags/rewite/" rel="tag">rewite</a>
]]>
</description>
</item><item>
<link>http://www.atans.cn/post/95/</link>
<title><![CDATA[114啦网址 导航建站系统 V1.13 发布]]></title> 
<author>atans &lt;admin@yourname.com&gt;</author>
<category><![CDATA[nginx]]></category>
<pubDate>Wed, 09 Dec 2009 08:09:14 +0000</pubDate> 
<guid>http://www.atans.cn/post/95/</guid> 
<description>
<![CDATA[ 
	<p><strong>114啦网址导航</strong>始建于2007年1月15日，本站的宗旨是为网民提供精彩实用的网址大全，减少人们为记忆繁杂网站域名的烦恼；随着用户需求的不断增加，我们也尽所能提供用户需要的各类上网服务，在此感谢一直以来支持本站的朋友们。</p>
<h3>114啦网址导航建站系统 V1.13&nbsp;&nbsp;</h3>
<ul>
    <li>适用于PHP5+MYSQL5(数据库使用gbk编码)</li>
    <li>增加在线升级功能，自动判断升级，方便及时修复bug和后续版本升级</li>
    <li>重写模版，简化模版标签，使用户制作模版更简单；</li>
    <li>修改广告调用模式，用户可直接写入代码，增强可操控性；</li>
    <li>实现酷站导航分类独立化，改内页关联为独立设置，增强了可操作性等。。</li>
</ul>
<p>下载:<a href="http://dx1.xiazaiba.com/Soft/9/114la_V1.13_XiaZaiBa_111202.zip">http://dx1.xiazaiba.com/Soft/9/114la_V1.13_XiaZaiBa_111202.zip</a><br />
114啦网址导航建站系统官方网站:<a href="http://www.114la.com/114la/">http://www.114la.com/114la/</a></p><br/>Tags - <a href="http://www.atans.cn/tags/114la/" rel="tag">114la</a>
]]>
</description>
</item>
</channel>
</rss>