help to config nginx

pepejose nginx-forum at
Thu Sep 3 12:49:51 MSD 2009

Michael Shadle Wrote:
> On Wed, Sep 2, 2009 at 7:50 AM, pepejose wrote:
> this should work.
> header("Content-type: image/gif");
> header("X-Accel-Redirect: $pic");
> exit();
> However note that $pic needs to be the relative
> image path, not the
> full file path on the filesystem. So it needs to
> be slightly modified
> as $pic would currently be
> /home/foo/web/, you'd
> need it to be just /dir/image.gif


I'll try that. thanks!

and the problem with large images with "proxy_buffering on"? (


Posted at Nginx Forum:,5514,5543#msg-5543

More information about the nginx mailing list