Re: apache 2.4 access controls and requires

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2012-02-27 at 18:37 +1000, Nick Edwards wrote:
I note that the allow/deny old method is deprecated, but I find the
lack of examples problemsome in trying to convert to the newer method,
which I guess we should be doing to avoid bad habbits.

DIR
     Order allow,deny
        Allow from 1.2.0 127.0.0.1
        Satisfy any
        ...auth DB stuff ...
        Require valid-user
/DIR

How would I write this?

DIR
Require all denied
require ip 1.2.0  127.0.0.1
require valid-user
/DIR


Close, you don't need the preceding "require all denied"  once you use a require blah, it infers everything else is opposite, therefore denied.



Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux