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?
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?