from my httpd.config:
DocumentRoot "/home/httpd/html"
<VirtualHost intranet>
ServerName intranet
DocumentRoot /home/httpd/html/intranet
.......
I have just set up a test dir as below:
/home/httpd/html/intranet/DOCS/protected
with the .htaccess file under this as follows:
cat .htaccess
AuthType Basic
AuthUserFile /usr/local/apache/conf/htpasswdfile
AuthName "special directory"
require valid-user
#require user tamm
#require user paul
======================
I have also tried this with "require user tamm "
I have created the user names/pw also but can't see
this as the problem as I am not being asked for
authentication yet.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin McDermott
> Sent: 28 March 2001 11:05
> To: [EMAIL PROTECTED]
> Subject: Re: [scottish] cant get .htaccess to work
>
>
> Thomas McLaughlin wrote:
> >
> > no error messages on screen or the log files. It does not promt me
> > for a username/pw as it should but takes me straight into the page.
> > I have tried putting the .htaccess file in the doc root dir in case
> > there was something overriding where i wanted to restrict access.
> > Not sure what else I can say. I compiled in quite a few modules
> > into apache such as mod_auth, mod_access so not sure if these will
> > have an effect.
> >
> >
>
> Can you post the .htaccess file you're putting in, and give me some
> indication of where in the directory path you're putting it?
>
> Kevin
> --------------------------------------------------------------------
> http://www.lug.org.uk http://www.linuxportal.co.uk
> http://www.linuxjob.co.uk http://www.linuxshop.co.uk
> --------------------------------------------------------------------
>
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------