Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: image_filter qq
- To: nginx-ru@xxxxxxxxx
- Subject: Re: image_filter qq
- From: Валентин Бартенев <ne@xxxxxxxx>
- Date: Mon, 30 Jan 2012 20:24:43 +0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=vbart.ru; s=mail; h=Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:In-Reply-To:References:Date:Subject:To:From; bh=e9xtCPzWQ7iCGYEtKT2JyBM1lqFTvPfcHHeUk2H6HSE=; b=RWQ7lVos5Hw81dGHCjCe+fG2WbVruyTh35hkv6YW3m3yniVHSh0zWJ/y8g0L9GlNK3edcvQnYMADIrzIl+WKytzJZqNEsIfkSfzgwP05w1zMBoGhRw9giIEaUSF7Lxo+S1pWs4LgKYl5H+k1PP+nwZKnn2qZZF7SckoCsKUU1gLbKq9GxGe6Zb2Q2AkklFgtJptdST6+3/0q7eoUptu1RE2nzSFoNecFRcbEKDGMKrQAGkSpsCIrur6UvljzUm/DaNhU7XGi9kw5SfZBalOqjT5OZ+URy3MUreuGKuqs72Qnb0awc4osKCm+tPS61mPQ4pHLPiR+G/8+tU7kzH4+SA==;
- In-reply-to: <a2b13499dc06bc5e2ab38efcf6f85413.NginxMailingListRussian@xxxxxxxxxxxxxxx>
- References: <a2b13499dc06bc5e2ab38efcf6f85413.NginxMailingListRussian@xxxxxxxxxxxxxxx>
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@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|