Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

password protect

Status
Not open for further replies.

fishess

Programmer
Sep 17, 2004
25
CA
Well this is my second question :) and focourse it's about protecting my pages from others. I have googled it and managed to get up to the point where it asks me for the username and password and it goes in without prompting me for it again. So obviously the password is working and all. So after it goes in, I get this:

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

Please contact the server administrator, admin@mshome.net 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.

***************************

Me error log says:

[Tue Sep 23 23:00:27 2003] [crit] [client ip address] configuration error: couldn't check access. No groups file?: /pictures/Album1.htm

I haven't got a clue what that means. Please help.

oh and the stuff I added to my httpd are the following:


<Directory "D:/Apachegroup/Apache2/htdocs/pictures">
AllowOverride AuthConfig
</Directory>


<Directory "D:/Apachegroup/Apache2/htdocs/pictures">
AuthType Basic
AuthName "By Invitation Only"
AuthUserFile /Apachegroup/Apache2/bin/password
AuthGroupFile /Apachegroup/Apache2/bin/group
Require group GroupName
</Directory>

Nothing else, should I have something else too?

Thanks mates
 
Do you actually have a "group" file, and can the web server read it?
 
fishess,

While you can do what you describe above, understanding the directives involved is necessary. Some people put the directives in a .htaccess file in the directory that they want to protect, rather than in the httpd.conf. This makes it easy to duplicate and modify without restarting Apache.




Wishdiak
 
lgarner, yes I do have a group file, and an appropriate password file. What do you mean can the server read it? IM pretty new to this, and i've been getting most of my info from googling.


Wishdiak, I went to the exact webpage before and tried that but couldn't get it to work. So I tried it from this site:


just a little clarification needed for thie error:

[Tue Sep 23 23:00:27 2003] [crit] [client ip address] configuration error: couldn't check access. No groups file?: /pictures/Album1.htm

what does it mean by groupS [with an S at the end] I haven't got a groupS file, just a group. Is that why?

and do I have to have this in my httpd if im not using .htaccess files?

AllowOverride AuthConfig

Thanks.

Damn man, all these sites tell you to do this and that..seems sooo straight forward but nothing ever works in my end.
 
Sorry, I didn't notice the drive letters in your configuration. Server permission isn't an issue.

Wishdiak is right. The path to the .htaccess file needs to be absolute. Try adding the drive letter to those lines.
 
Thanks for the reply guys. Got it working, and you guys were absolutely right :)

Very much appereciated. Thanks again.
 
Hi, back to this problem :(
I had this working for one user, even though I wanted it for multiple users in the beginning. Now it came back to bite me in the @$$.
I couldn't get this working for single user nor multiple users because of the absolute path. Now I can't get multiple user logins to work.

I added the following to httpd file

<Directory "D:/Episodes">
AllowOverride AuthConfig
</Directory>

<Directory "D:/Episodes">
AuthType Basic
AuthName "By Invitation Only"
AuthUserFile D:/Apache2/bin/multiple
AuthGroupFile D:/Apache2/bin/htgroup
Require Group users
</Directory>

****************************

my htgroup file

users: user1 user2

*********************************

This works for single user, when I modify it for a single user. And in single user it is able to access the password file. But when i put it for multiple users i get the following error in my log.

[Tue Nov 09 18:37:59 2004] [error] [client ip] access to /Episodes/ failed, reason: unknown require directive:"Group users", referer:
[Tue Nov 09 18:37:59 2004] [error] [client ip] access to /Episodes/ failed, reason: user downloads not allowed access, referer:
Can anyone please enlighten me on what I'm doing wrong?
Thanks
 
Try changing "Require Group" to "Require group". Note the case.
 
When I do that I get a whole different error msg.

[Wed Nov 10 20:14:59 2004] [crit] [client ip] configuration error: couldn't check access. No groups file?: /Episodes/, referer:

This is the same error I got a while back lol. If you scroll up you'd see it.

I have googled this soo many times, and all the sites tell me the same thing. I don't see what im doing differently.
 
well lol anyone have any idea how to resolve this. I also tried using DBM instead of the htpasswd way, I get the same exact error. So im thinking it has nothing to do with how i've set it up, but something else I have to add into it?

Error:
configuration error: couldn't check access. No groups file?:

Please do help :)
Thanks
 
ahh good news, got it working after aganizing hours of playing around :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top