help to config nginx

pepejose nginx-forum at nginx.us
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/foo.com/dir/image.gif, you'd
> need it to be just /dir/image.gif

	
hi,

I'll try that. thanks!

	
and the problem with large images with "proxy_buffering on"? (http://www.eglx.com/J/bug.JPG)

	
greetings

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,5514,5543#msg-5543






More information about the nginx mailing list