Welcome! Log In Create A New Profile

Advanced

Re: try_files and filter modules

Valentin V. Bartenev
February 13, 2012 08:38AM
On Monday 13 February 2012 16:46:55 Reinis Rozitis wrote:
> Hello,
> is there a reason (or workaround) why try_files doesn't work with filter
> modules (in my case its image_filter)?
>
>
> For example:
>
> location ~ (.*)/small_(.*) {
> try_files $uri $1/medium_$2 $1/large_$2;
> image_filter crop 175 175;
> }
>
> The crop filter is never applied.
[...]

Probably, because $uri and $1/medium_$2 doesn't exist or
smaller than your crop.

location ~ (.*)/small_(.*) {
try_files $uri $1/medium_$2 $1/large_$2 =404;
image_filter crop 175 175;
}

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

try_files and filter modules

Reinis Rozitis February 13, 2012 07:48AM

Re: try_files and filter modules

Valentin V. Bartenev February 13, 2012 08:38AM

Re: try_files and filter modules

Reinis Rozitis February 13, 2012 08:56AM

Re: try_files and filter modules

Valentin V. Bartenev February 13, 2012 09:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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