Deny access to one file

Igor Sysoev is at rambler-co.ru
Sat Jan 19 20:09:17 MSK 2008


On Thu, Jan 17, 2008 at 08:23:59AM +0100, Emers wrote:

> Dave Cheney wrote:
> >Try
> >
> >location = ' /includes/confirm_register.php' {

> >    deny    192.168.0.0/16;
> >    deny    123.123.123.0/24;
> >    allow   all;
> >}
> 
> Nope. Doesnt work.

-  location = ' /includes/confirm_register.php' {
+  location = /includes/confirm_register.php {


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list