X-Sendfile Header

All,

Does nginx support the concept of the X-Sendfile header described here:

http://wiki.rubyonrails.org/rails/pages/HowtoSendFilesFast

???

My problem is that I’m sending a file to an iphone with rails
(send_file) but I guess mongrel doesn’t support byte-range requests.
But I know nginx does…

Thanks,
Alex

On Wed, Nov 07, 2007 at 10:58:24PM -0800, Alex E. wrote:

Does nginx support the concept of the X-Sendfile header described here:

http://wiki.rubyonrails.org/rails/pages/HowtoSendFilesFast

???

My problem is that I’m sending a file to an iphone with rails
(send_file) but I guess mongrel doesn’t support byte-range requests.
But I know nginx does…

nginx supports more general concept - X-Accel-Redirect:
http://wiki.codemongers.com/NginxXSendfile