Hey all, I'm a little stumped about what I'm doing wrong here. Basically I have a subdirectory that I want to restrict access to specific IP's, otherwise return a 403. If I do the following (inside my server {} block): server { // normal processing code here ... location ~ ^/my_ws$ { allow XX.XX.XX.XX; allow XX.XX.XX.XX/2by jdiana - Nginx Mailing List - English