Issues with default_type

Maxim Dounin mdounin at mdounin.ru
Tue Apr 13 20:25:21 MSD 2010


Hello!

On Tue, Apr 13, 2010 at 02:22:41PM +0100, James G wrote:

> Here's a snippet of my configuration:
> location /resource/image/
> {
> 	default_type image/jpeg;
> 	add_header Content-Type image/jpeg;
> 	mogilefs_tracker 192.168.0.1:7001;
> 	mogilefs_domain 'repository:images';
> 
> 	mogilefs_pass
> 	{
> 		proxy_pass $mogilefs_path;
> 		proxy_hide_header Content-Type;
> 		proxy_buffering off;
> 	}
> }
> 
> So I've set the default type, forced the header with add_header, and
> told the proxy_pass not to send the Content-Type header. So we
> should be getting the Content-Type of "image/jpeg", right?

Try setting default_type in mogilefs_pass{} block, it should fix 
your issue.

Maxim Dounin



More information about the nginx mailing list