Can I use different Directory according to the source IP?

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

 



First, I may ask the question in a different way: can we have two defined Directory tag for one directory?

I want to deal with users differently according to there source IP:

Can I use different Directory to achieve this, something like that:

- users with source 192.168.1

<Directory /var/www/html/directory>
      Order Deny,Allow
      Deny from all
      Allow from 192.168.1
</Directory>
     
- other users (need to be authenticated using LDAP):

<Directory /var/www/html/directory>
      AuthName "LDAP Authentication"
      AuthType Basic
      AuthBasicProvider ldap
      AuthzLDAPauthoritative off
      AuthLDAPURL ldap://192.168.1.3/dc=example,dc=com?uid?sub?(objectClass=*)
      Require valid-user
</Directory>


[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