winshining / nginx-http-flv-module

A media streaming server based on nginx-rtmp-module. In addtion to the features nginx-rtmp-module provides, HTTP-FLV, GOP cache, VHosts (one IP for multi domain names) and JSON style statistics are supported now.
BSD 2-Clause "Simplified" License
2.71k stars 567 forks source link

nginx.conf Example 的问题 #220

Closed svc-design closed 2 years ago

svc-design commented 2 years ago

Configuration file / 配置文件

https://github.com/winshining/nginx-http-flv-module 默认提供的 nginx.conf Example配置无法启动nginx

location /hls {
            root /tmp;
            add_header 'Cache-Control' 'no-cache';
        }

        location /dash {
            root /tmp;
            add_header 'Cache-Control' 'no-cache';
        }
        application hls {
            live on;
            hls on;
            hls_path /tmp/hls;
        }

        application dash {
            live on;
            dash on;
            dash_path /tmp/dash;
        }

Steps to reproduce the behavior / 复现问题步骤

svc-design commented 2 years ago

看日志发现 /tmp后面后自动添加路径