Forum Moderators: phranque

Message Too Old, No Replies

How to set authentication for group

         

associates

12:42 am on Dec 20, 2005 (gmt 0)

10+ Year Member



Hi,

I was wondering if anyone might be able to help me out here. I've spent a lot of time trying to get this to work. Basically, what i really want to do is to let more than one user to access to the webserver. I've read the user authentication on the apache website and still couldn't get it right.

What I have done so far is i initially started off with a single user authentication and it worked perfectly. I then decided to move on to the next level that is to let users access. So it says that i have to create a group file. I used a notepad and put in as follows,

Mygroup: richard.parso michael.kim (just for a start)

and saved it as groups (but it automatically saved it in text format .txt which i think might cause the problem)

Then i went to httpd.conf and added in as follows

<Directory "C:/AppServ/www>
AuthType Basic
AuthName "By Invitation Only"
AuthUserFile "c:/passwd/passwords"
AuthGroupFile "c:/passwd/groups"
Require group Mygroup
</Directory>

Then, i restarted my apache. And i got the following error,

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

So, your help is greatly appreciated. Thank you in advance

jdMorgan

2:50 pm on Dec 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> saved it in text format .txt which i think might cause the problem

Yes, either rename it, or change the AuthGroupFile path to agree with the file's actual name; They must match exactly.

And since the server told you to look at the error log, what did you find in it?

Jim