July 26, 2010 10:19AM
Hi fellows,

My scenario is request a image by its id and respond a fixed size(150*200) image, such as
a backend is used for query file's path in DB by id

My configuration is:
step 1), pass the request to the backend:
location /image{
proxy_pass backend;

step 2), in the backend, set the ' X-Accel-Redirect ', for example, " X-Accel-Redirect :/internal/test.jpg"

setp 3), respond the file and aslo do image_filter
location /internal {
image_filter resize 150 200;
alias /datastore/;

But it doesn't work. I guess X-Accel-Redirect cannot work with a filter, am i right?
If so, how can I make this scenario work?

Subject Author Posted

X-Accel-Redirect cannot work with a filter?

ckong July 26, 2010 10:19AM

Re: X-Accel-Redirect cannot work with a filter?

andiger May 15, 2015 03:42PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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