server { listen 8999 default_server; listen [::]:8999 default_server; root /var/www/html; index index.html index.htm index.nginx-debian.html; server_name _; location / { try_files $uri $uri/ =404; } include /etc/nginx/rtmp-pwd.conf; location /recordings { autoindex on; } location ~ /recordings/.*\.flv$ { deny all; return 403; } }