# FLV streaming on Debian Lenny Nginx binary package

**URL:** <https://www.ruby-forum.com/t/flv-streaming-on-debian-lenny-nginx-binary-package/183162>\
**Category:** NGINX\
**Created:** [February 9, 2010, 9:12am UTC](https://www.ruby-forum.com/t/flv-streaming-on-debian-lenny-nginx-binary-package/183162 "2010-02-09T09:12:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 9, 2010, 9:12am UTC](https://www.ruby-forum.com/t/flv-streaming-on-debian-lenny-nginx-binary-package/183162/1 "2010-02-09T09:12:12Z")

</div>

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](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/](http://localhost/video.flv?start=1/)), an _404_ responce recieved.

Can anyone help me with this issue? Where I was wrong?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 9, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/flv-streaming-on-debian-lenny-nginx-binary-package/183162/2 "2010-02-09T14:37:04Z")

</div>

On Tue, Feb 9, 2010 at 4:11 PM, Ð’Ð»Ð°Ð´Ð¸Ð¼Ð¸Ñ€ Ð›Ð¾Ñ‰Ð¸Ð½  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Â When I try to GET flv file with some shift  
> ([http://localhost/video.flv?start=1](http://localhost/video.flv?start=1)), an 404 responce recieved.  
> Check your error.log

–  
Ren Xiaolei
