Gossamer Forum
Quote Reply
.htgroup
I've been trying to get .htgroup to work on my site. Currently I have the following;

.htaccess
Code:
AuthUserFile /home/ace-ins/public_html/dev/.htpasswd
AuthGroupFile /home/ace-ins/public_html/dev/.htgroup
AuthName "Protected Area"
AuthType Basic
require admin test users

.htpasswd
Code:
admin:MMn3mipe32D22

.htgroup
Code:
admin: admin

Can anyone see why this wouldn't work? Its bringing up the password box...but simply won't let me in. I know the usewr/pass combo are working; cos if I change the 'require admin test users' to 'require valid-user', and remove the 'AuthGroupFile' reference....it lets me in fine. Its leading me to believe its something to do with the .htgroup stuff Unsure

Anyone had any experience with this stuff?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] .htgroup In reply to
Do you get any errors in your error.log?

- wil
Quote Reply
Re: [Andy] .htgroup In reply to
That 'require' line is wrong too, I think. I think it should be in the format:

Code:
require user admin

That is, you explicity state that you require the 'user' 'admin'. I'm not sure if this actually takes multiple entries. What's wrong with require valid-user?

- wil
Quote Reply
Re: [Wil] .htgroup In reply to
Quote:
[Tue Mar 18 04:58:37 2003] [error] [client 62.64.211.2] File does not exist: /home/ace-ins/public_html/401.shtml
[Tue Mar 18 04:58:34 2003] [error] [client 62.64.211.2] File does not exist: /home/ace-ins/public_html/401.shtml
[Tue Mar 18 04:58:33 2003] [error] [client 62.64.211.2] File does not exist: /home/ace-ins/public_html/401.shtml

Thats all my error log says Unsure


Regarding the 'require' part...that is meant to 'allow' only certain groups, which are held in the .htgroup file.

Thanks for replying Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] .htgroup In reply to
Maybe try require group admin?

My point is that I think you need to specify what it is you are requiring.

- wil
Quote Reply
Re: [Wil] .htgroup In reply to
Yeah..you are indeed right. Duh! Crazy

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!