Answer the question
In order to leave comments, you need to log in
Nginx location how to give access?
location /hls {
root /var/www/hls;
}
2015/01/28 17:25:22 [error] 3216#0: *1 open() "/var/www/hls/hls/live.m3u8" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /hls/live.m3u8 HTTP/1.1", host: "127.0.0.1"
2015/01/28 17:26:26 [error] 3216#0: *1 open() "/var/www/hls/hls/live.m3u8" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /hls/live.m3u8 HTTP/1.1", host: "127.0.0.1"
2015/01/28 17:30:02 [error] 3216#0: *9 open() "/var/www/hls/hls" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /hls HTTP/1.1", host: "127.0.0.1"
2015/01/28 17:30:04 [error] 3216#0: *9 open() "/var/www/hls/hls" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /hls HTTP/1.1", host: "127.0.0.1"
2015/01/28 17:30:06 [error] 3216#0: *9 "/var/www/hls/hls/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /hls/ HTTP/1.1", host: "127.0.0.1"
Answer the question
In order to leave comments, you need to log in
nginx.org/ru/docs/http/ngx_http_core_module.html#root
location /hls/ {
root /var/www;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question