Re: [ProgSoc] Password Protection errors?

Anand Kumria (wildfire@nospam.progsoc.uts.edu.au)
Wed, 14 May 1997 14:42:27 +1000 (EST)


On Wed, 14 May 1997, Daniel Owen wrote:

> Ok, In an an effort to password protect a directory on my account
> for web pages I have created a .htaccess file exactly as shown:
>
> AuthUserFile: /home/daniel/.htpasswd
> AuthGroupFile /dev/null

If you don't have a group file, just leave this directive out

> AuthName: ByPassword

You shouldn't have the colons ":" after the directives.

> AuthType Basic
>
> <Limit GET>
> require valid-user
> </Limit>
>
> and I have created a .htpasswd file in my home dir...
> But I get a "Server error" (at least it's protected!) when I tried it out

the .htpasswd will need to be world readable so that the server can check
who authorised. You might also want to make your .htaccess inaccessable.

Apart from that, what do the server logs (/var/log/web) say?

Anand

--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.