Welcome! Log In Create A New Profile

Advanced

X-Accel-Redirect cannot work with a filter?

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
[code]
http://foo.com/image?id=1
[/code]
a backend is used for query file's path in DB by id

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

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
[code]
location /internal {
internal;
image_filter resize 150 200;
alias /datastore/;
}
[/code]

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?

Thanks!
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: 68
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