.htaccess password not working for all files

Posted by hapalibashi on Server Fault See other posts from Server Fault or by hapalibashi
Published on 2010-03-02T21:09:17Z Indexed on 2010/04/02 12:03 UTC
Read the original article Hit count: 421

Filed under:
|
|
|

My .htaccess on Rackspace looks like this:

AuthType Basic 
AuthName "Restricted Area"
AuthUserFile /path-to-htdocs/.htpasswd
Require valid-user

Now I would expect this to password protect the whole directory, however, it only protects files with .php extension! What is wrong with it? Is it something in the default http.conf that I cannot override? The path used to .htpasswd is correct as it accepts the user/passwd in the case of .php

© Server Fault or respective owner

Related posts about rackspace

Related posts about .htaccess