Sorry. I have a misunderstand of your mail. And here is some suggestions for you.<br><br>If your only have fewer static file type, add default_type at your special location context. In addition if your static file is for download, then I think the simple way is to add force download header at the conf file. Other else I think you should add this header in your code.<br>
<br>If you want nginx add Content-Type header in X-Accel-Redirect, she must recognize the file type, and I think that&#39;s not efficient.<br><br><br><div class="gmail_quote">2009/4/17 Xia Qingran <span dir="ltr">&lt;<a href="mailto:qingran.xia@gmail.com" target="_blank">qingran.xia@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/4/17 张立冰 &lt;<a href="mailto:zhang.libing@gmail.com" target="_blank">zhang.libing@gmail.com</a>&gt;:<br>
&gt; 看下这个模块对你有没有帮助。<br>
&gt;<br>
&gt; <a href="http://wiki.nginx.org/NginxHttpHeadersModule" target="_blank">http://wiki.nginx.org/NginxHttpHeadersModule</a><br>
&gt;<br>
<br>
Sorry for no Chinese inputing method.<br>
<br>
This module can not do anything for this. Because nginx adds<br>
content-type header according to the extended filename and the content<br>
of mime.types.<br>
<font color="#888888"><br>
--<br>
夏清然<br>
Xia Qingran<br>
<a href="mailto:qingran.xia@gmail.com" target="_blank">qingran.xia@gmail.com</a><br>
Sent from Beijing, 11, China<br>
Arnold Schwarzenegger &nbsp;- &amp;quot;I have a love interest in every one of<br>
my films - a gun.&amp;quot; -<br>
<a href="http://www.brainyquote.com/quotes/authors/a/arnold_schwarzenegger.html" target="_blank">http://www.brainyquote.com/quotes/authors/a/arnold_schwarzenegger.html</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>The time you enjoy wasting is not wasted time!<br>