server { location / { include naxsi.rules; } #This location will block offenders returning an error location RequestDenied { return 418; } #This location makes use of the auth basic module that will limit the people access to the location. The fancyindex will list the files available location /Stream { auth_basic "Movies Streaming"; auth_basic_user_file /etc/nginx/.htpasswd; fancyindex on; fancyindex_exact_size off; } }