Rails XSendfile via Nginx
lists at ruby-forum.com
Wed May 9 21:21:23 UTC 2012
I modified the applications url paths to--
> Probably you want to include "~" in your second location directive:
Tried adding the (regex) tilde, but that did not solve the issue.
> So: if the client wishes to get access to the file "test.video", what
> public url will they use to access it?
> What is the X-Accel-Redirect header that the backend sends to nginx?
How can I find this out? When I curl directly to the backend server I
get these headers: see http://pastebin.com/CVLjhLRJ
> And where on the filesystem is the file "test.video"?
The video files are stored according to their respective ids; note the
paths are different AFTER the "videos" directory --
This leads me to believe the issue is with the alias mapping, i.e.
I tried changing it to the following, but that did not work. I'm not
even sure if that type of mapping is allowed. Does anyone know if alias
mapping allows regex? I couldn't find any thing in the docs.
Appreciate the help.
Posted via http://www.ruby-forum.com/.
More information about the nginx