Welcome! Log In Create A New Profile

Advanced

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

February 04, 2011 05:35PM
The problem is solved. nginx does not send any request to thr server if the file extension is .png or .jpg. 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;
}

Both wok fine for me.
Maybe it will be helpful for somebody,
Thanks,
Irina
Subject Author Posted

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

Irina February 04, 2011 02:08PM

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

Irina February 04, 2011 05:35PM

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

Cliff Wells February 05, 2011 01:24AM

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

Irina February 07, 2011 10:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 128
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready