Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm pretty experienced with computers and Apache, but this is the first time I have tried to install Apache on a windows computer. Here is my problem:
Apache is installed at: C:\Program Files\Apache Software Foundation\Apache2.2
My web files are stored at: E:\
I've set up the conf file and I can access the files in the root of E:\ by going to http://localhost:80
So the server is up and running fine.
I've also created a .htaccess file and placed it in E:\. It contains:
------------------------
AuthType Basic
AuthUserFile "C:\Program Files\Apache Software Foundation\Apache2.2\conf\.htpasswd"
AuthName "Test Login"
Require admin
-------------------------The .htpasswd file was generated by using the "htpasswd.exe" in the Apache bin directory.
Now, when I go to http://loachost:80 I am prompted for a user name and password, however, the password is not accepted. And yes, I am typing it correctly.
Any ideas as to why it won't accept the password set in the .htpasswd file?
-Ryan Adams
http://RyanTAdams.com

Hi,
I wonder whether it can find the file.
Have you tried:AuthUserFile "C:/Program Files/Apache Software Foundation/Apache2.2/conf/.htpasswd"
I think it gets confused with the \ character if it's not escaped.
It could also be the basic authentication module isn't getting loaded (httpd.conf LoadModule sections).
hth
Elinor Hurst
http://elinorhurst.blogspot.com

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |