Click to See Complete Forum and Search --> : Help with .htaccess & .htpasswd


johnbullas
11-23-2002, 09:48 AM
OK.. I do not have "ultimate access" to the guts of the server I am using but can run SSI commands and route error pages and force parsing via .htaccess (Apache/1.3.22 Server)

I am trying out access controls.....

My question is WHY would a password control on a directory not work...

http://www.marketeering.net/british-aggregates/members

I have cut and pasted an encrypted password

generated here:

http://www.4webhelp.net/us/password.php

to a .htpasswd file then ASCII transferred to the server (into the same directory)

I have generated a .htaccess file in the directory thus...
(no line breaks in locations BTW)

AuthName "British Aggregates Association Members Area"
AuthType "Basic"
AuthUserFile /www/marketeering/british-aggregates/members/.htpasswd
AuthGroupFile /dev/null
<Limit GET>
require user test
</LIMIT>
AddHandler server-parsed .htm
AddHandler server-parsed .html

Why would this not work?

Attempted access prompts a password box but no attempts to put in

user name test
password password

seems to work.... I get a 401 after "n" goes

HELPPPPPPPPP this a bit of "playing" to get used to doing this thing for real

John

Robert Wellock
11-25-2002, 06:08 AM
I am assuming you have the following encrypted string within the .htpasswd extension: test:m67VXP4hQhyDk