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

Fernando Perez lists at ruby-forum.com
Tue Aug 24 21:07:17 MSD 2010


Hi,

How come my Rails app that relies on Nginx to stream mp4 videos to flash
and restricts access with X-Accel-Redirect, works on my dev machine but
fails on the production server?

The config files are 99% the same: dev machine uses mongrel, prod
machine uses passenger.

On the first request I see in my nginx and rails log a request to
video.mp4?start=0

Then when I scrub, on my dev machine I see requests to
video.mp4?start=12, etc. But nothing on my production server, the video
restarts from the beginning.

Any idea? I'm sure it's a stupid thing I'm missing here.
-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list