Welcome! Log In Create A New Profile

Advanced

Re: mp4 streaming + X-Accel-Redirect works on dev, fails on prod

Fernando Perez
August 24, 2010 04:12PM
It seems that the following was part of the culprit:

location ~ \.mp4$ {
mp4;
}

By removing the $ sign at the ned of the regexp, I managed to make the
streaming work. This also means the doc written by code-shop is wrong.

Anyway, now I need to tie everything up and combine mp4 with
X-Accel-redirect.

I currently have the following which does not work:

location ~ /restricted/ {
mp4;
internal;
}

But I'm not sure it can work out right. As /restricted is the direct
access to the files, which must be prevented. In reality my flash player
gets the file from /restricteds/some/other/path and behind the scenes
Rails will set the appropriate headers.

This would mean that I'm missing a directive that would look like:

location ~ /restricteds/ {
mp4;
passenger_enabled on;
...
}

Am I right?

Or maybe I cannot be done, and in order to secure the downloads I'll
have to use the secure download module?
--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

mp4 streaming + X-Accel-Redirect works on dev, fails on prod

Fernando Perez August 24, 2010 01:12PM

Re: mp4 streaming + X-Accel-Redirect works on dev, fails on prod

Fernando Perez August 24, 2010 04:12PM

Re: mp4 streaming + X-Accel-Redirect works on dev, fails on prod

Fernando Perez August 25, 2010 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready