httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Issa Mbodji <issambo...@yahoo.com>
Subject RE: [users@httpd] Directory protection
Date Thu, 30 Jan 2003 03:07:01 GMT

Great. Thanks all. It is working fine..........
 Jeff Cohen <apache@gej-it.com> wrote:In case the directory mercedissa is under the
DocumentRoot folder then you
should just add the following to you r httpd.conf file:


Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
AuthType Basic
AuthName "Please Enter your Username and Password"
AuthUserFile "c:/apache/bin/users."
Require valid-user


If the mercedissa is not under the htdocs file, you'll need to create an
Alias for it, which means to add the following line too to your conf file,
just like that:

Alias /mercedissa / "d:/mercedissa/"

> -----Original Message-----
> From: Issa Mbodji [mailto:issambodji@yahoo.com]
> Sent: Wednesday, January 29, 2003 4:39 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Directory protection
> 
> If someone requests it, he will be asked for a
> password and username.
> 
> --- "J. Greenlees" wrote:
> > Issa Mbodji wrote:
> > > I have attached the text file to this message.
> > > Thanks.
> > > Mystery Admin
> > wrote: On
> > Tue, 28 Jan 2003 at 19:50:56, Issa Mbodji wrote:
> > >
> > >
> > >>Hello:
> > >>
> > >>I have a directory that I want to protect. I am
> > using a windows OS and
> > >>running apache 1.3.27. Here is the directory:
> > >>
> > >>C:\apache\htdocs\mercedissa.
> > >>
> > >>I have tried all ways possible that I know and
> > people have recommended, but
> > >>in vain.
> > >>
> > >>I created the password file in C:/apache/bin/users
> > (users being the passwd
> > >>file) and I also created the AuthFileName and
> > saved it as htaccess file (with
> > >>and without the .dot). I also changed the
> > configuration file (httpd.conf)
> > >>AllowOverride All and AuthConfig. As you can see
> > nothing happened. I am new
> > >>using apache. (I read the documentations...)
> > >>
> > >>Also I would like to know, how can I change
> > >>C:\apache\htdocs\mercedissa\index.html to
> > http://localhost/....... and access
> > >>it directly from my browser without having to go
> > to file->open and browse for
> > >>the file to open it.
> > >>
> > >>Thanks for your help.
> > >
> > >
> > > If you post your htpd.conf, we can see what is
> > configured or not that is causing
> > > the problem.
> > >
> > > Peace...
> > >
> > > T
> > >
> >
> > first off, there is no such directory defined in the
> > conf.
> > can't protect it if you don't even mention it in the
> > conf.what exactly
> > do you want to do when you say protect it?
> >
> >
> >
> ---------------------------------------------------------------------
> > The official User-To-User support forum of the
> > Apache HTTP Server Project.
> > See for
> > more info.
> > To unsubscribe, e-mail:
> > users-unsubscribe@httpd.apache.org
> > " from the digest:
> > users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail:
> > users-help@httpd.apache.org
> >
> 
> 
> =====
> Mame Issa Mbodji
> 3201 Weeping Willow Ct # 33
> Silver Spring, MD , 20906
> Tel. (301) 603-0847
> e-mail: issambodji@yahoo.com
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mame Issa Mbodji 
3201 Weeping Willow Ct # 33 
Silver Spring, MD , 20906 
Tel. (301) 603-0847 
e-mail: issambodji@yahoo.com


---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Mime
View raw message