location / { if ($remote_addr ~ "^10\.10\.1\.1[0-9]+$") { return 533; } # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. # try_files $uri $uri/ =404; }