views:

59

answers:

0

So I noticed some odd behavior with Apache today. It appears that when I change my location from "/" to "/somedir" that PHP does not properly set the $_SERVER['PHP_AUTH_PW'] variable. I am not sure why this is happening nor do I know where to go to see why it could not be getting set.

I am using PHP5 and Apache2 with LDAP as my authentication method. When the user hits the site they are prompted for credentials. Like I said, if I have the authentication applied to "/" then my variable will get set upon successful login. However, if I have it set to a certain directory (I want to only have password protection on some dirs and not all) then it will not get set.

Any ideas?