Image files (jpg,png) could not be opened.
Irina
nginx-forum at nginx.us
Sat Feb 5 01:35:58 MSK 2011
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
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,172228,172268#msg-172268
More information about the nginx
mailing list