I have been using .htaccess on a web site and have just ported the software to a new site. I install the following .htaccess file in the directory I want to protect:
AuthUserFile /home/andy/public_html/BaseDir/.htpasswd
AuthGroupFile /dev/null
AuthName "Test Cordillera Conversion Site"
AuthType Basic
<Limit GET POST>
require vaild-user
</Limit>
The .htpasswd file is in the same directory, namely
/home/andy/public_html/BaseDir/.htpasswd
When I enter the protected directory I get the authentication prompt and enter the username and password. However, the system no longer can find the password. I checked the .htpasswd file with vi and it looks OK - I don't know how to decript the password but when I use my program to update a user's password the appropriate password in the .htpasswd file get updated.
To check what would happen I pointed AuthUserFile to a non-existant file and get the same result. SO it would appear that I would get the same behavior if somehow .htaccess was not finding the appropriate file. This makes some sense since the application worked before the port.
Is there any way to try to debug this? I feel like a blind man trying to find his way out of maze. I've looked a the .htaccess file for hours trying to see if anything is wrong and can't find anything. I've reuploaded it and re-entered it several times just to make sure there weren't some unprintable characters in the file screwing it up. I've also changed the permissions of .htaccess and .htpasswd files to 777 to make sure it's not a permission problem.
Any suggestions on where I can go from here?
Thanks
Andy Cruce
AuthUserFile /home/andy/public_html/BaseDir/.htpasswd
AuthGroupFile /dev/null
AuthName "Test Cordillera Conversion Site"
AuthType Basic
<Limit GET POST>
require vaild-user
</Limit>
The .htpasswd file is in the same directory, namely
/home/andy/public_html/BaseDir/.htpasswd
When I enter the protected directory I get the authentication prompt and enter the username and password. However, the system no longer can find the password. I checked the .htpasswd file with vi and it looks OK - I don't know how to decript the password but when I use my program to update a user's password the appropriate password in the .htpasswd file get updated.
To check what would happen I pointed AuthUserFile to a non-existant file and get the same result. SO it would appear that I would get the same behavior if somehow .htaccess was not finding the appropriate file. This makes some sense since the application worked before the port.
Is there any way to try to debug this? I feel like a blind man trying to find his way out of maze. I've looked a the .htaccess file for hours trying to see if anything is wrong and can't find anything. I've reuploaded it and re-entered it several times just to make sure there weren't some unprintable characters in the file screwing it up. I've also changed the permissions of .htaccess and .htpasswd files to 777 to make sure it's not a permission problem.
Any suggestions on where I can go from here?
Thanks
Andy Cruce