From: Guillaume F. <gf...@lo...> - 2002-08-21 22:16:42
|
At 12:06 -0400 21/08/02, Jinqiao Yu wrote: >In the .htaccess file, at the first time I put: > > AuthGroupFile /etc/httpd/conf/group > AuthUserFile /etc/http/conf/passwd > AuthType basic > AuthName "access" > require valid-user > >After I hit the cgi interface, I got the file not existing error. >Then I found the passwd file in my linux pc is in /etc/passwd. Hi, You should create the passwd file using the htpasswd program included with apache. Ex: htpasswd -c /etc/httpd/conf/passwd jinqiaoyu I don't think that you can use your existing /etc/passwd file; maibe an Apache module could do this, but I'm not very familiar with this. Check out http://httpd.apache.org/docs/howto/htaccess.html for more informations. Regards, GFK's -- Guillaume Filion Logidac Tech., Beaumont, Qu=E9bec, Canada - http://logidac.com/ PGP Key and more: http://guillaume.filion.org/ (this will redirect) PGP Fingerprint: 14A6 720A F7BA 6C87 2331 33FD 467E 9198 3DED D5CA |