On Tue, 3 Aug 1999, Umit Akarsu wrote:
> Do these,
> for which directory you want to set password create .htaccess in this
> directory 
> 
> 
> For example :
> 
> AuthUserFile /usr/www/.htpasswd
> AuthGroupFile /dev/null
> AuthName
> AuthType Basic
> <Limit GET>
> require valid-user
> </Limit>
> 
> create /usr/www/.htpasswd (first do mkdir /usr/www)
> then generate a passwd with htpasswd then add this generated passwd and
> user in .htpasswd  and you can learn about htpasswd with htpasswd --help
>  then restart your httpd deamon 
> 
> i guess it works 
> good luck 
NONOONONONONO
Don't use <Limit>, you're opening access for every other method.

AuthUserFile /usr/www/.htpasswd
AuthGroupFile /dev/null
AuthName
AuthType Basic
require valid-user

Your use of <Limit> probably comes from reading the example in the Apache
documentation, which has the fundamental flaw of showing an unusual use of
require, instead of the one that should be used in almost every
situation:(


> 
> 
> On Tue, 3 Aug 1999, Umut Ceyhan wrote:
> 
> > Look at Apache FAQ... 
> > 
> > On Tue, 3 Aug 1999, Ruprecht Helms wrote:
> > 
> > > Hi,
> > > 
> > > How can I protect special Websites with a password using apache?
> > > What have I to configure?
> > > 
> > > Regards,
> > > Ruprecht
> > > 
> > > -- 
> > > Sent through Global Message Exchange - http://www.gmx.net
> > > 
> > > 
> > > 
> > > -- 
> > > Sent through Global Message Exchange - http://www.gmx.net
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-net" in
> > > the body of a message to [EMAIL PROTECTED]
> > > 
> > 
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-net" in
> > the body of a message to [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
> 

-- 
Henrik Olsen,  Dawn Solutions I/S       URL=http://www.iaeste.dk/~henrik/
(Gulliver visits some places.)
Lilliputian: We're small.  Brobdingnagian: We're big.  Horse: We can talk.
(Gulliver goes home.)             Gulliver: Humanity sucks. I hate people.
               Gulliver's Travels by Jonathan Swift; Book-A-Minute version

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to