Apache and authentication problems (Full Version)

All Forums >> [Web Development] >> Server Issues



Message


paul rayner -> Apache and authentication problems (2/23/2005 21:36:54)

Hi
I'm running Apache 1.3.23 on Win Xp using localhost.
I'm trying to learn authentication, but am stuffing it up somehow.

I created a user using htpasswd - for now leaving it in the bin/users

I then added the following to my httpd.conf file, restarted apache.
<Directory "C:/Program Files/Apache Group/Apache/htdocs/test">
AuthName "restricted stuff"
AuthType Basic
AuthUserFile "C:/Program Files/Apache Group/Apache/bin/users"

Require valid-user
</Directory>

In the "main" directory permissions - I changed it to:
AllowOverride AUthConfig

When I try to access the directory test, an authentication screen pops up, but doesn't allow me access. I get a 401 error.

Apache has been working fine - handling php and sql - but I've obviously stuffed up something here.

Can anyone please help?





Giomanach -> RE: Apache and authentication problems (3/1/2005 12:44:24)

Hi Paul

My guess would be that the Admin password etc for localhost are not the same as the set that you're using to log in with....

Dan




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.699707E-02