I'm trying to deny access to a specific URL on our site running on Nginx but allow it from specific IP's, I've been trying to fiddle around using Location but it seems that's just trying to find a proper directory and not the URL.
This is what I came up with, but just gives back a 404.
location /specificurl {
root /var/www/site1.com/current;
allow 123.123.123.123;
deny all;
}