X-Accel-Redirect and Content-Type

Igor Sysoev is at rambler-co.ru
Fri Dec 14 12:03:15 MSK 2007

On Fri, Dec 14, 2007 at 09:48:37AM +0100, G?bor Farkas wrote:

> i have set up an X-Accel-Redirect based solution.
> the usual thing.
> there are 2 locations,
> one is proxied to an other webserver, which basically does the 
> authentication,
> and the second location is marked as "internal", and from there are the 
> files served.
> the problem is with content-types.
> the authentication-web-app sends back a wrong content-type, and nginx 
> uses that when serving the file.
> is there a way to tell nginx to ignore the content-type that he got from 
> the authentication-app, and use his own mime-tables to determine the 
> content-type?

Right now - there's no way. I'm going to allow to control them using

Igor Sysoev

More information about the nginx mailing list