[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] .htaccess (Domain Name and Ip Address Access)



Hi,
   I had similar issues and here is what I did:

In httpd.conf make sure you have this

AccessFileName .htaccess
AllowOverride AuthConfig

Then put a .htaccess file in the directory that you want to restrict access to with something like this:

AuthUserFile /usr/local/apache/conf/password.txt
AuthGroupFile /dev/null
AuthName MembersOnly 
AuthType Basic

require valid-user

and then make sure that you create the password.txt in the appropriate location as specified in you .htaccess file using the htpasswd command. Do a man on htpasswd for more info.

Good luck...and hope this helps.
Will

-----Original Message-----
From: "Philippe CATHALA" <p.cathala@xxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Jun 2001 11:40:02 +0200
To:  <cobalt-developers@xxxxxxxxxxxxxxx>
Subject: RE: [cobalt-developers] .htaccess (Domain Name and Ip Address Access)


> Hello,
> 
> I think you must have a line like :
> AuthUserFile /home/site/.htpasswd
> where .htpasswd file is the file containing login/password.
> But you have to delete your line : AuthUserFile /dev/null
> 
> I hope this could help you.
> 
> Philippe
> p.cathala@xxxxxxxxxxxxxxxxxx
> 
> 
> -----Message d'origine-----
> De : cobalt-developers-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]De la part de Rodney
> Parris
> Envoye : samedi 9 juin 2001 20:54
> A : cobalt-developers@xxxxxxxxxxxxxxx
> Objet : [cobalt-developers] .htaccess (Domain Name and Ip Address
> Access)
> 
> 
> Hello I'm trying to use .htaccess to allow access from domain names and
> IP addresses.  I have worked my way through most of what apache has on
> their website on the subject, and still it doesn't work.  Here is what I
> 
> have already. Could someone please tell give me a clue of what I keep
> getting wrong.
> 
> 
> > # Access file
> > order allow,deny
> > allow from all
> > allow from members.xxx.com members.xxe.com members.xx4.com
> > require valid-user
> > Authname AdministrationOnly
> > AuthPAM_Enabled off
> > Authtype Basic
> > AuthUserFile /dev/null
> > AuthgroupFile /dev/null
> 
> By the way, my allowoverride settings are set to "all"
> 
> There is no problem password protecting the directory, I just need to
> know how allow access by Domain or IP because as of now, I'm still
> getting a "forbidden error"
> 
> 
> Thanks In Advance
> Rodney
> 
> PZO Entertainment
> Charlotte, NC
> 
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
>  <A HREF="http://list.cobalt.com/mailman/listinfo/cobalt-developers"; TARGET="_new"><FONT COLOR="BLUE">http://list.cobalt.com/mailman/listinfo/cobalt-developers</FONT></A>
> 
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
>  <A HREF="http://list.cobalt.com/mailman/listinfo/cobalt-developers"; TARGET="_new"><FONT COLOR="BLUE">http://list.cobalt.com/mailman/listinfo/cobalt-developers</FONT></A>
> 

-- 

_______________________________________________
Make PC-to-Phone calls with Net2Phone.
Sign-up today at: http://www.net2phone.com/cgi-bin/link.cgi?121