Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rewrite
2012/8/29 Hett <nginx-forum@xxxxxxxx>:
> В общем с помощью лога ошибок удалось написать рабочий вариант
>
> location /static/images/mime/ {
> root /var/www/static/;
> if (!-e $request_filename) {
> rewrite /([^/]+)/[^/]+\.png$
> /static/images/mime/$1/default.png break;
>
> }
> }
>
location /static/images/mime/ {
try_files $uri /static/images/mime/default.png;
}
как-то так.
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?21,230251,230254#msg-230254
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|