How to allow specific IP's to a URL (not directory!) in Nginx

view full story

http://serverfault.com – 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; deny all; } Thank you (HowTos)