看下这个模块对你有没有帮助。<br><br><a href="http://wiki.nginx.org/NginxHttpHeadersModule">http://wiki.nginx.org/NginxHttpHeadersModule</a><br><br><div class="gmail_quote">2009/4/17 Xia Qingran <span dir="ltr">&lt;<a href="mailto:qingran.xia@gmail.com">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;">Hi,<br>
Can nginx automaticly add Content-Type header when there is no<br>
Content-Type header in backend response with X-Accel-Redirect?<br>
<br>
I am taking use of X-Accel-Redirect to do the privacy control for<br>
static files. And I have to add the Content-Type header by the backend<br>
CGI programs. If nginx could do so, the backend CGI programs using<br>
X-Accel-Redirect will feel much better and more efficient.<br>
<br>
<br>
Regards,<br>
<font color="#888888">--<br>
夏清然<br>
Xia Qingran<br>
<a href="mailto:qingran.xia@gmail.com">qingran.xia@gmail.com</a><br>
Sent from Beijing, 11, China<br>
Mitch Hedberg &nbsp;- &amp;quot;I drank some boiling water because I wanted to<br>
whistle.&amp;quot; -<br>
<a href="http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html" target="_blank">http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>The time you enjoy wasting is not wasted time!<br>