[nSLUG] Apache Authentication Problem

Vikram vikram at popgen.org
Wed Mar 26 14:24:47 AST 2003


Oh, there we go, you caught me.  I actually created the "passwords" file as
root.  Just now I changed the ownership to the user "apache" and everything
works perfect now.

Thank you Jamie.

Greetings,
Vikram


----- Original Message -----
From: "Jamie Fifield" <jamie at fifield.ca>
To: <nslug at nslug.ns.ca>
Sent: Wednesday, March 26, 2003 2:11 PM
Subject: Re: [nSLUG] Apache Authentication Problem


> What's the contents of "passwords"?  And is it readable by the web
> server?
>
> On Wed, Mar 26, 2003 at 01:11:48PM -0400, Vikram wrote:
> > Hello all
> >
> > I am trying to setup restricted password protected access to a few
> > directories on my apache server.  I did following:
> >
> > 1. Created a password file with the "htpasswd" utility for the people
whom I
> > wish to give access to the protected directory
> > 2. Created following entries in the "httpd.conf" file
> >
> > <Directory "/var/www/html/secret">
> >
> > AuthType Basic
> > AuthName "Restricted Files"
> > AuthUserFile /path_to_the_password_file_I_created_above/passwords
> > require user webuser
> >
> > Saved httpd.conf and restarted httpd service.
> >
> > Now when I try to access the secret directory, my browser prompts for
> > password again and again, it's not being able to authenticate me.  If I
hit
> > cancel, I get the usual authentication required error.
> >
> > Any clues as to where I may have goofed up?
> >
> > Thank you.
> >
> > Greetings // Vikram
> >
> >
> > _______________________________________________
> > nSLUG mailing list
> > nSLUG at nslug.ns.ca
> > http://nslug.ns.ca/cgi-bin/mailman/listinfo/nslug
>
> --
> Jamie Fifield
> <jamie at fifield.ca>
> _______________________________________________
> nSLUG mailing list
> nSLUG at nslug.ns.ca
> http://nslug.ns.ca/cgi-bin/mailman/listinfo/nslug
>




More information about the nSLUG mailing list