<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[转载]nginx模块（echo,set-misc,simpl-ngx_devel_kit）使用实战]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Web服务器]]></category>
<pubDate>Wed, 12 Oct 2016 08:50:04 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	DownLoad:https://github.com/openresty/set-misc-nginx-module/<br/>&nbsp;&nbsp;&nbsp;&nbsp;最近公司运营提出需求，需要使从公司网站上下载的资料文件显示为中文名称，研发部问道我们有没有好的实现方法，php应该有这样的功能，研发回复说，之前就是这样实现过，但太消耗内存，不做考虑了，才有现在下载资料文件，显示中文名称没有实现。想了想，记起前段时间看agentzh（章亦春）大牛关于nginx的大作以及他写的nginx的模块，似乎有实现此类功能的模块，找了一下果然有：http://wiki.nginx.org/HttpSetMiscModule#Installation<br/>利用其中 set_decode_base64 以及nginx 的 add_header 添加一个http头：Content-Disposition ，配合php代码实现。<br/>nginx 添加模块重新编译<br/>下载需要的模块：<br/>到 https://github.com/agentzh/ 下载模块<br/>agentzh-echo-nginx-module-v0.41-1-gb3ad5c1.tar.gz<br/>agentzh-set-misc-nginx-module-v0.22rc8-5-ge79e7f0.tar.gz<br/>simpl-ngx_devel_kit-v0.2.17-10-g4192ba6.tar.gz<br/>解压到对应目录<br/>安装：<br/>./configure&nbsp;&nbsp;--user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --add-module=/usr/local/nginx_module/ngx_devel_kit --add-module=/usr/local/nginx_module/misc-nginx --add-module=/usr/local/nginx_module/echo-nginx <br/> <br/>make -j2 <br/> <br/>make install <br/>php 实现部分我也不是太懂，就不贴出来了。<br/>nginx 相关配置段<br/><a href="http://jackxiang.com/attachment.php?fid=460" target="_blank"><img src="http://jackxiang.com/attachment.php?fid=460" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>最终效果，上图<br/><a href="http://jackxiang.com/attachment.php?fid=461" target="_blank"><img src="http://jackxiang.com/attachment.php?fid=461" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>各位童鞋注意啦：该种方式在使用CDN的网站中也可以生效的。<br/>从该功能上线以来看，效果还不错，agentzh（章亦春）写的nginx模块那是杠杠的<br/>参考：http://wiki.nginx.org/HttpSetMiscModule#Installation<br/>来自：http://longzhiyi.blog.51cto.com/350171/964677
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [转载]nginx模块（echo,set-misc,simpl-ngx_devel_kit）使用实战]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>