Rails XSendfile via Nginx

Ari King lists at ruby-forum.com
Thu May 10 20:46:41 UTC 2012


> or do you want your rails backend server to do some processing and
> decide whether or not they should be sent the contents of that file,
> or do you want something else to happen? (If "something else", then
> describe what else.)

I want rails to authenticate/authorize access to the content in question
and then have nginx serve that file. The following articles
explain/demonstrate what I'm trying to do:

http://rack.rubyforge.org/doc/Rack/Sendfile.html

http://thedataasylum.com/articles/how-rails-nginx-x-accel-redirect-work-together.html

Thanks.

-Ari

-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list