X-Accel-Redirect and Content-Type

hi,

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?

thanks,
gabor

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

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
proxy_hide_header/proxy_pass_header.

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