Forum: NGINX FLV streaming on Debian Lenny Nginx binary package

Posted by Владимир Лощин (Guest)
on 2010-02-09 09:12
(Received via mailing list)
Hi, everybody.
  I trying to configure *nginx*, which was installed from standard
*Debian* repository, for FLV streaming. And the problem is:
  When I try to GET flv file with some shift
(http://localhost/video.flv?start=1), an 404 responce recieved.

Here is a compilation options nginx binary package:
/# /nginx -V

/nginx version: nginx/0.6.32
configure arguments: --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid
--lock-path=/var/lock/nginx.lock
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-proxy-temp-path=/var/lib/nginx/proxy
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug
--with-http_stub_status_module *--with-http_flv_module*
--with-http_ssl_module --with-http_dav_module

  As you can see, *with-http_flv_module* key are presented in configure
options.

  Here is stantard Debian Lenny nginx config file:

================================================================================
server {
        listen   80;
        server_name  localhost;
        limit_rate   5120;

        access_log  /var/log/nginx/localhost.access.log;

        location / {
                root   /var/www/nginx-default;
                index  index.html index.htm;
        }

        location /doc {
                root   /usr/share;
                autoindex on;
                allow 127.0.0.1;
                deny all;
        }

        location /images {
                root   /usr/share;
                autoindex on;
        }

        #error_page  404  /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
                root   /var/www/nginx-default;
        }

        # proxy the PHP scripts to Apache
        #
        #location ~ \.php$ {
                #proxy_pass   http://127.0.0.1;
        #}

        # pass the PHP scripts to FastCGI server listening on 
127.0.0.1:9000
        #
        #location ~ \.php$ {
                #fastcgi_pass   127.0.0.1:9000;
                #fastcgi_index  index.php;
                #fastcgi_param  SCRIPT_FILENAME
/scripts$fastcgi_script_name;
                #includefastcgi_params;
        #}
        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
                #deny  all;
        #}

*        location ~ \.flv$ {
                flv;
                root   /var/www/nginx-default;
        }
*}
================================================================================

  Bold text is my modiffication of config file.
  The issue once again:
  When I try to GET flv file with some shift
(/http://localhost/video.flv?start=1/), an *404* responce recieved.

  Can anyone help me with this issue? Where I was wrong?
Posted by 任晓磊 (Guest)
on 2010-02-09 14:37
(Received via mailing list)
On Tue, Feb 9, 2010 at 4:11 PM, Владимир Лощин
<vladimir.loshchin@gmail.com> wrote:
>   When I try to GET flv file with some shift
> (http://localhost/video.flv?start=1), an 404 responce recieved.
 Check your error.log

--
Ren Xiaolei
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.