Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Location with multiple paths

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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>