Welcome! Log In Create A New Profile

Advanced

Re: image_filter qq

Валентин Бартенев
January 30, 2012 11:26AM
On Monday 30 January 2012 20:03:26 Humster wrote:
> Добрый день,
>
> Проблема следующая. Делаю конструкцию
> типа
>
> location ~ \.jpg {
> if ( $arg_resize ) {
> image_filter resize $arg_w -;
> }
> }
>
> nginx ругается: "image_filter" directive is not allowed here.
>
> А вот так:
>
> location ~ \.jpg {
> image_filter resize $arg_w -;
> }
>
> все нормально работает.
>
> Скажите, пожалуйста, это фича или баг?
>

http://www.nginx.org/ru/docs/http/ngx_http_image_filter_module.html#image_filter
"контекст: location"

--
Валентин Бартенев
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

image_filter qq

Humster January 30, 2012 11:03AM

Re: image_filter qq

Валентин Бартенев January 30, 2012 11:26AM

Re: image_filter qq

Humster January 30, 2012 11:43AM

Re: image_filter qq

Валентин Бартенев January 30, 2012 11:54AM

Re: image_filter qq

Humster January 30, 2012 12:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 171
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