Re: стриминг видео на nginx сервере
zeromind
nginx-forum на nginx.us
Пт Фев 24 17:30:44 UTC 2012
user www-data;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local]
"$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
client_max_body_size 100m;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name privat-zapisi.net www.privat-zapisi.net;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /home/zeromind/www;
index index.html index.htm index.php;
access_log off;
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ~*
^.+\.(html|htm|flv|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js|docx|odt|7z|avi|mpeg|mpg|mp4|mp3|ogg|mov)$
{
root /home/zeromind/www;
}
location ~ \.mp4$ {
mp4;
mp4_buffer_size 1m;
mp4_max_buffer_size 10m;
}
location ~ \.flv$ {
flv;
}
вот основа из моего конфига, дальше
почти всё закомментировано..
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,222082,222956#msg-222956
Подробная информация о списке рассылки nginx-ru