Welcome! Log In Create A New Profile

Advanced

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

张立冰
April 17, 2009 09:14AM
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 Qingran <qingran.xia@gmail.com <mailto:qingran.xia@gmail.com>>

2009/4/17 张立冰 <zhang.libing@gmail.com
<mailto:zhang.libing@gmail.com>>:
> 看下这个模块对你有没有帮助。
>
> 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 Qingran
qingran.xia@gmail.com <mailto:qingran.xia@gmail.com>
Sent from Beijing, 11, China
Arnold Schwarzenegger - &quot;I have a love interest in every one of
my films - a gun.&quot; -
http://www.brainyquote.com/quotes/authors/a/arnold_schwarzenegger.html
Subject Author Posted

Can nginx automaticly add Content-Type header when there is no Can nginx add Content-Type in X-Accel-Redirect?

Xia Qingran April 17, 2009 04:33AM

Re: Can nginx automaticly add Content-Type header when there is no Can nginx add Content-Type in X-Accel-Redirect?

张立冰 April 17, 2009 04:39AM

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

Xia Qingran April 17, 2009 04:54AM

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

张立冰 April 17, 2009 09:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 269
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready