Image files (jpg,png) could not be opened.

Cliff Wells cliff at develix.com
Sat Feb 5 09:20:39 MSK 2011


On Fri, 2011-02-04 at 17:35 -0500, Irina wrote:
> The problem is solved. nginx does not send any request to thr server if
> the file extension is .png or .jpg. 

This isn't true, unless you've configured it this way.

> The solution is to sedn this request
> if file name is matched up with image file extension. Add this line to
> nginx.conf:
>        location ~ \.png$ {
>             proxy_pass  http://mongrel;
>         }
> 
> The more general solution is to match an url, something like that:
>         location ^~/insight/show_file/ {
>             proxy_pass  http://mongrel;
>         }

What I would suggest, if you want help with your configuration, is to
post your config here so that people can see what you are trying to do.

Cliff




More information about the nginx mailing list