[users] ip based access control on 2.4.7

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

 



Hello,

I just upgraded to 2.4.7 from 2.2 and I’m having trouble getting ip based access control to work in my .htaccess and config files alike.

Can someone help me with the new syntax for blocking all traffic by default then allowing only certain IP addresses?

>From what I can tell, it should be something like the following but it doesn’t work:

<Directory "/path/to/private/directory" >
Require ip 1.2.3.4
</Directory>

I want to:
Block by default to private directory
Pass allowed ip addresses.

I have managed to set it up to block everything or pass everything but no luck blocking everything except my ip.

It is ubuntu 14 if that makes a difference, and the modz_host module is enabled.  I have tried turning access_compat off but it breaks php and my old configuration with deny,allow,etc.. doesn’t work at all.

Baffled.

Thanks,

Jason




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[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