Yes, you are right, I have this line in my config that conflicts when I would like to open any image files. location ~* \.(ico|css|gif|js|jpe?g|png)(\?[0-9]+)?$ { add_header Cache-Control "must-revalidate"; expires max; break; } But I need it otherwise pages will be loading extremely slow. So this line along with my previous updby Irina - Nginx Mailing List - English
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 ^~/iby Irina - Nginx Mailing List - English
Проблема решена. Для тех кому интересно: nginx не посылает запрос серверу, если расширение .png,.jpg. Добавление следующей строки в nginx.conf location ~ \.png$ { proxy_pass http://mongrel; } посылает запрос, если расширение .png. Более обby Irina - Nginx Mailing List - Russian
Интересно, как вы тогда обьясните, что это прекрасно работает, если расширение .txtby Irina - Nginx Mailing List - Russian
Я туда уже глядела. 2011/02/04 13:44:56 4196#4216: *3 CreateFile() "c:\alpha\Stable\Ruby\Nginx\/../Chart/public/insight/show_file/2/Winter.jpg" failed (3: The system cannot find the path specified), client: 192.168.4.63, server: alpha-live1, request: "GET /insight/show_file/2/Winter.jpg HTTP/1.1", host: "www.stockrover.com", referrer: "http://by Irina - Nginx Mailing List - Russian
Добрый день! Проблема в том, что картинки не открываются (файлы png, jpg). Для других типов файлов я получаю окно, где можно выбрать прорамму, чем смотреть, а в случае картинок вылезает страница 404. Файл mime.types на месте. Кто знby Irina - Nginx Mailing List - Russian
Hi all, Image files like .png and .jpg could not be opened when click on it. It works fine for others like .txt or .xls. I got a prompt window where I can select a program to open the file but for image files I got 404 error page. mime.types file is in place and has image types. Any help would be great, Thanks a lot, Irinaby Irina - Nginx Mailing List - English