[Rails] XSendfile via Nginx
Hi,
I'm trying to configure nginx to serve a video file on behalf of my
rails 3 backend using xsendfile. I want rails to redirect the request
for http://myapp.com/recipes/1/video to nginx to handle. Unfortunately,
my current configuration results in a 404 (page not found) error. I've
pasted my nginx configuration at http://pastebin.com/VA4QFM35
Does anyone know what could be wrong?
Note: I have activated X-Accel-Redirect in rails by:
# Rails configuration (e.g. config/environments/production.rb)
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
Thanks.
Ari
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home