Answer the question
In order to leave comments, you need to log in
How to rewrite such request to nginx?
I use the ngx_small_light module for image resizing ( https://github.com/cubicdaiya/ngx_small_light)
The module works in 2 versions. Or:
small_light on;
location ~ small_light[^/]*/(.+)$ {
set $file $1;
rewrite ^ /$file;
}
small_light on;
small_light_pattern_define msize dw=300,dh=300,da=l,q=95,e=imagemagick,jpeghint=y;
location ~ small_light[^/]*/(.+)$ {
set $file $1;
rewrite ^ /$file;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question