Welcome! Log In Create A New Profile

Advanced

Location with multiple paths

Posted by sandino 
Location with multiple paths
March 10, 2013 05:49AM
Hello everybody,

I'm trying to limit access to some scripts on my site and created these instructions that work:

server {
...
location ^~ /info.php {
allow x.x.x.x;
deny all;
}
location ^~ /apc.php {
allow x.x.x.x;
deny all;
}
}

As you can see rules are the same. Can I use one expression for both paths?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 254
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready