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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
8a178ad712b49bd3d8031e00dfe1e3fd?d=identicon&s=25 Xia Qingran (Guest)
on 2009-04-17 11:05
(Received via mailing list)
2009/4/17 ÕÅÁ¢±ù <>:
> ¿´ÏÂÕâ¸öÄ£¿é¶ÔÄãÓÐûÓаïÖú¡£

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
Sent from Beijing, 11, China
Arnold Schwarzenegger  - &quot;I have a love interest in every one of
my films - a gun.&quot; -
73ad028341c045f423691da9dae1be53?d=identicon&s=25 张立冰 (Guest)
on 2009-04-17 15:23
(Received via mailing list)
Sorry. I have a misunderstand of your mail. And here is some suggestions

If your only have fewer static file type, add default_type at your
location context. In addition if your static file is for download, then
think the simple way is to add force download header at the conf file.
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 <>
This topic is locked and can not be replied to.