RE: Can't get .htaccess to work

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



> > The syntax for auth stuff changed between Apache 2.0 and 2.2 (which is
> > used in CentOS 5). In particular, you'll need a AuthBasicProvider
> > declaration:
> >
> > http://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html#authbasicprovider
>
> Thans Paul,
> That's new news to me :)
>
> For the OP, I believe it would be:
> <Location /secure>
> AuthType basic
> AuthName "private area"
> AuthBasicProvider file
> AuthDBMType file
> AuthDBMUserFile /home/mysite/.htpasswd
> Require valid-user
> </Location>

Thanks,

OK I tried that and it still would not work, I am not prompted for
a username or password on the site I want to protect.

Do I also need to add a new entry in httpd.conf or load a new apache
module?


Use video conversation to talk face-to-face with Windows Live Messenger. Get started!
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux