nginx_http_push_module配置错误

时间:2013-02-03 16:11:33

标签: nginx

我试着按照这里的基本示例: https://github.com/wandenberg/nginx-push-stream-module/blob/master/README.textile

将以下内容添加到我的配置中( / etc / nginx / sites-available / default ):

location /channels-stats {
    # activate channels statistics mode for this location
    push_stream_channels_statistics;

    # query string based channel id
    set $push_stream_channel_id             $arg_id;
}

location /pub {
    # activate publisher (admin) mode for this location
    push_stream_publisher admin;

    # query string based channel id
    set $push_stream_channel_id             $arg_id;
}

location ~ /sub/(.*) {
    # activate subscriber (streaming) mode for this location
    push_stream_subscriber;

    # positional channel path
    set $push_stream_channels_path              $1;
}

但是当我重新启动nginx时,我得到了这个错误:

  

重新启动nginx:nginx:[emerg] unknown指令   /etc/nginx/nginx.conf中的“push_stream_channels_statistics”

push_stream_channels_statistics 似乎只有其他两个块/ pub& amp; / sub /似乎工作得很好..

有什么想法吗?

0 个答案:

没有答案