Forum Moderators: phranque
I'm running XAMPP under Windows XP. I have a very simple .htaccess and .htpasswd file, designed only to require a valid user to a single folder on an experimental web site. I can get in with the user name and password from anywhere I've tried it, but some people overseas cannot, even when they type the correct user name and password. Is this something that I'm blocking by accident? I'm pretty new to Apache.
Thanks,
-Steve
-------------------------------
Here is my .htaccess file:
AuthName "Protected Area"
AuthType Basic
AuthUserFile C:/xampp/.htpasswd
require valid-user
--------------------------------
And here is the .htpasswd file:
testuser:testuser
When using per-directory override files (.htaccess) you need to use the Apache htpasswd utility to create and edit the password file. If you can see the password, it is likely you didn't use the utility. Here is a must-read doc from Apache to get you on track:
[httpd.apache.org...]
-Steve
As it turns out, following the instructions from the Apache documentation had no effect on the ability of my colleagues in Jordan being able to get in to the site with the correct user name and password. They keep entering the proper info, and the password screen just keeps repeating; it seems that it isn't passing the information through to .htaccess. Any ideas?
-Steve
The first place to check would be your log files to see what is going on.
[Tue Mar 14 00:44:55 2006] [error] [client nnn.nnn.nnn.nnn] The system cannot find the file specified. : Could not open password file: C:/xampp/.htpasswd
Ask your users which link they are trying to open in their browser, then look at the .htaccess file specifics you have in that directory.