| 1 |
|
|---|
| 2 | #user nobody;
|
|---|
| 3 | worker_processes 1;
|
|---|
| 4 |
|
|---|
| 5 | #error_log logs/error.log;
|
|---|
| 6 | #error_log logs/error.log notice;
|
|---|
| 7 | #error_log logs/error.log info;
|
|---|
| 8 |
|
|---|
| 9 | #pid logs/nginx.pid;
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | events {
|
|---|
| 13 | worker_connections 1024;
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | http {
|
|---|
| 18 | include mime.types;
|
|---|
| 19 |
|
|---|
| 20 | sendfile on;
|
|---|
| 21 |
|
|---|
| 22 | server {
|
|---|
| 23 | listen 8008;
|
|---|
| 24 | server_name localhost;
|
|---|
| 25 | root "D:/Program Files/nginx-1.14.0";
|
|---|
| 26 |
|
|---|
| 27 | #charset koi8-r;
|
|---|
| 28 |
|
|---|
| 29 | #access_log logs/host.access.log main;
|
|---|
| 30 |
|
|---|
| 31 | location /dash {
|
|---|
| 32 | auth_basic "DASH segments is here";
|
|---|
| 33 | auth_basic_user_file "D:/Program Files/nginx-1.14.0/conf/.htpasswd";
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | location /hls {
|
|---|
| 37 | auth_basic "HLS segments is here";
|
|---|
| 38 | auth_basic_user_file "D:/Program Files/nginx-1.14.0/conf/.htpasswd";
|
|---|
| 39 | }
|
|---|
| 40 |
|
|---|
| 41 | #error_page 404 /404.html;
|
|---|
| 42 |
|
|---|
| 43 | # redirect server error pages to the static page /50x.html
|
|---|
| 44 | #
|
|---|
| 45 | error_page 500 502 503 504 /50x.html;
|
|---|
| 46 | location = /50x.html {
|
|---|
| 47 | root html;
|
|---|
| 48 | }
|
|---|
| 49 |
|
|---|
| 50 | }
|
|---|
| 51 | }
|
|---|