Welcome! Log In Create A New Profile

Advanced

FLV streaming на Linux Debian Lenny (nginx из пакета)

February 09, 2010 06:18AM
Всем здравствуйте.
Я пытаюсь сконфигурировать *nginx*, установленный из бинарного пакета
из репозитория *Debian*, для FLV стриминга. И я столкнулся с проблемой:
Когда я пытаюсь запросить (GET-запросом) flv-файл со смещением
(следующим URL-ом http://localhost/video.flv?start=1), я получаю ошибку 404.

Вот параметры конфигурации пакета при сборке.
/# /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

Как вы можете видеть, *with-http_flv_module* присутствует в опциях сборки

Вот стандартный файл конфигурации nginx из пакета:

================================================================================
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;
}
*}
================================================================================

Последнюю директиву location внёс я.
И ещё раз о проблеме:
Когдя я пытаюсь GET-нуть flv файл с каким-либо сдвигом
(/http://localhost/video.flv?start=1/), я получаю ошибку 404.

Кто-нибудь сталкивался с подобной проблемой?

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

FLV streaming на Linux Debian Lenny (nginx из пакета)

BadBob February 09, 2010 06:18AM

Re: FLV streaming на Linux Debian Lenny (nginx из пакета)

Igor Sysoev February 09, 2010 06:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 157
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