[Apache] htaccess Problem about Two <Directory> Definition
I'm now confused about how authentication with .htaccess on Apache is implemented. Suppose that I got two directories, /home/Anderson/public_html/ and /home/A/B/, and they are all defined almost identically in httpd.conf :
Options FollowSymLinks MultiViews
AllowOverride Limit Options FileInfo AuthConfig
<Limit GET POST OPTIONS PROPFIND>
Allow from all
<LimitExcept GET POST OPTIONS PROPFIND>
Deny from all
(...... Same as above)
The only difference maybe is that /home/A/B is a VirtualHost(www.ABC.org). Now I am planning to authenticate my users by usernamd and password controlled by LDAP if they are not connecting with a specific IP I indicate. When I put my .htaccess under /home/Anderson/public_html/ and /home/A/B/, it seems that only the one under /home/Anderson/public_html/ works. While I try to access www.ABC.org, all of the authenticative function is invaild and users are permitted to view my page without any restriction. Here is my .htaccess :
AuthName "Login or Kick Your Ass !"
<Limit GET POST>
Deny from all
Allow from 10.0.0.1
require user Arthas Thrall Jaina
Was there any mistake I made during my configuring or something I missed here? Anyway, thanks for the patience of your reading.
Trust & Unique ...
Axacheng's PGP Public Key http://www.navigation.idv.tw/pgpkey