Hello, location ~ /admin/ Above matches every admin folder on the domain but i just want to match "/admin" on the url like http://domain.com/admin Tried this location = /admin/ But that did not work. I`m suing this location to password protect. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,131021,131021#msg-131021