[CentOS] Can't get .htaccess to work

Sat Apr 19 00:58:19 UTC 2008
Fajar Priyanto <fajarpri at cbn.net.id>

On Saturday 19 April 2008 03:35:52 Paul Heinlein wrote:
> 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

Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial 
07:58:09 up 48 min, 2.6.22-14-generic GNU/Linux 
Let's use OpenOffice. http://www.openoffice.org
The real challenge of teaching is getting your students motivated to learn.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.centos.org/pipermail/centos/attachments/20080419/33b8c32e/attachment-0005.sig>