Forum: NGINX content-type after proxy_pass

Posted by dannynoonan (Guest)
on 2010-03-06 15:47
(Received via mailing list)
In servicing a request for: /foo.jpg which actually lives out in a 
mogilefs backend  as /00/00/01.fid or something like that.

I've configured nginx to peform
proxy_pass -> fastcgi_pass -> python app -> X-Accel-Redirect -> 
proxy_pass

the first proxy_pass that receives the request for /foo.jpg has 
proxy_hide_header Content-Type so as to not pick up the mime-type for 
*.fid from the backend.

I was hoping that the nginx instance closest to the client would 
remember that foo.jpg was requested and assign content-type 
appropriately, but content-type remains unset.

I see mention of something that could help in this thread:
http://n2.nabble.com/problem-w-gzip-when-hiding-Content-Type-header-from-upstream-server-td3256026.html
location /combined.css {
    proxy_pass ..
    override_type     ;

but alas, override_type seems to be not available as of: nginx-0.7.65

Is there another method I could use to set content-type?


http://n2.nabble.com/problem-w-gzip-when-hiding-Content-Type-header-from-upstream-server-td3256026.html

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,60636,60636#msg-60636
Posted by new2nginx (Guest)
on 2010-03-16 00:02
(Received via mailing list)
I'm having the same issue. Anyone find a solution? Thanks.

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,60636,64194#msg-64194
Posted by nginx_user (Guest)
on 2010-03-16 18:38
(Received via mailing list)
I am having a similar problem, advice appreciated. Thanks

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,60636,64459#msg-64459
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.