Nginx 1.2.7 / h.264 / flowplayer

I’m running Nginx v1.2.7 from the Nginx repo, with mp4 module enabled.

I added this to my conf:

   location ~ \.mov {
            mp4_buffer_size 1m;
            mp4_max_buffer_size 5m;

    location / {
            try_files $uri $uri/ @rewrite;

    location @rewrite {
            # Some modules enforce no slash (/) at the end of the 

# Else this rewrite block wouldn’t be needed
#if ($uri !~* /gcal/(.)$) {
rewrite ^/(.
)$ /index.php?q=$1 last;

    location ~ \.php$ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME

fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/phpfpm.sock;
fastcgi_read_timeout 300;
fastcgi_send_timeout 300;


I’m pseudo-sreaming using flowplayer 3.2.5. When I attempt to view a
I get:

200 stream not found…

In the error logs, I get this: - - [15/Mar/2013:17:21:58 +0000] “GET
/flowplayer/flowplayer.commercial-3.2.5.swf?0.8039274555630982 HTTP/1.1”
326175 “ is available for purchase -” “Mozilla/5.0
Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko)
Chrome/25.0.1364.172 Safari/537.22”

2013/03/15 17:21:58 [error] 9872#0: *1210 open()
“/var/www/p.php/201303-video/” failed (20: Not a
client:, server:, request: “GET
HTTP/1.1”, host: “”, referrer: is available for purchase -

It works via Apache, so my guess is that my Nginx config is not quite
Any pointers would be appreciated. This is a Drupal hosted website.

I realize there is a “Not a directory” error, which I am guessing may be
indication that the nginx config is not correct, because that URL is
invalid. Probably because I’m not processing the locations correctly
this functionality. But, I’m not sure exactly what needs to be changed
this point for it to be correct.

Posted at Nginx Forum:

.mov is not .mp4, they are completely different containers.

Once again, never mind. I had a bad location filter.

Posted at Nginx Forum:

Well, true, but .mov is still h.264 encoded, so I believe it would still
the same streaming mechanism. Maybe I’m wrong about that. At any rate,
appears to be working now that I fixed my nginx location filters.

Lukas T. Wrote:

I’m running Nginx v1.2.7 from the Nginx repo, with mp4 module
location / {
} - - [15/Mar/2013:17:21:58 +0000] "GET
client:, server:, request: "GET
quite right.

[email protected]
nginx Info Page

Posted at Nginx Forum: