Re: Can nginx add Content-Type in X-Accel-Redirect?

2009/4/17 ÕÅÁ¢±ù [email protected]:

¿´ÏÂÕâ¸öÄ£¿é¶ÔÄãÓÐûÓаïÖú¡£

http://wiki.nginx.org/NginxHttpHeadersModule

Sorry for no Chinese inputing method.

This module can not do anything for this. Because nginx adds
content-type header according to the extended filename and the content
of mime.types.


ÏÄÇåÈ»
Xia Q.
[email protected]
Sent from Beijing, 11, China
Arnold Schwarzenegger - "I have a love interest in every one of
my films - a gun." -

Sorry. I have a misunderstand of your mail. And here is some suggestions
for
you.

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.

If you want nginx add Content-Type header in X-Accel-Redirect, she must
recognize the file type, and I think that’s not efficient.

2009/4/17 Xia Q. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs