|
|
|
|
áòèé÷ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FLV streaming ÎÁ Linux Debian Lenny (nginx É Ú ÐÁËÅÔÁ)
- To: nginx-ru@xxxxxxxxx
- Subject: FLV streaming ÎÁ Linux Debian Lenny (nginx É Ú ÐÁËÅÔÁ)
- From: ÷ÌÁÄÉÍÉÒ ìÏÝÉÎ <vladimir.loshchin@xxxxxxxxx>
- Date: Tue, 09 Feb 2010 17:17:23 +0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=9Wo5H9Dpcfta+sF1zEgtpq1nsreRPhXkygIqaOIpqck=; b=C8Mfh0vrNzoRwsLJR6vpACQIEsD7N+OmngKBpWTr+qgcbz2+m7QoVzet4JY3elNfIX QB+jGSOWbDKzRqVJHcXpjDK/7SDgRV682FUaS+q9LRxPM4HnwkOYcUDAQPJJMCWGAVLs ZzH/uUUaf6d49E7TeClVI0A8goiCtts1ixNzA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=uToqz8pnmdqYJ58zBwKu1+utqtMhno5PYEgkX8+Izf9qROVJwEWmupB5g85HpGnYsE pM3c6oXamgad54RW+2PXEHgEonCqBuAHZwZeBDJrere7aNJIX73Czb9EYT8ZpvGjU92P MhFQaw6D14YSzaclWBTSqPZqyBry4Xs8lhp/0=
š ÷ÓÅÍ ÚÄÒÁ×ÓÔ×ÕÊÔÅ.
š ñ ÐÙÔÁÀÓØ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ 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@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|
|
|