Welcome! Log In Create A New Profile

Advanced

Re: image_filter qq

January 30, 2012 11:43AM
Валентин Бартенев Wrote:
-------------------------------------------------------
> 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_f
> ilter_module.html#image_filter
> "контекст: location"
>

А внутри директивы if в терминах nginx'а не контекст location? Мне казалось
логичным, что все что работает внутри location, должно работать и внутри директив
внутри location.

То есть это фича?

--
Humster
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: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready