>
> hi,
>
> how will i enable password protection on apache? i've tried .htaccess
> pero dehins nag work, im using apache_1.3.12, do i have to input extra
> configuration on the .conf files for .htaccess.?
>
edit your httpd.conf, under the "#Controls who can get stuff from this
server." add this following
<Directory /usr/local/apache/htdocs/private>
Options Indexes FollowSymLinks
AllowOverride All
order allow,deny
allow from all
</Directory>
Then Edit your .htaccess
AuthName "Ask Tech for access"
AuthType Basic
AuthUserFile /usr/local/apache/htdocs/private/.htpasswd
<Limit GET PUT>
order deny,allow
deny from all
require user tech
satisfy any
</Limit>
Then use ./htpasswd -c /usr/local/apache/htdocs/private tech
HTH.
- - - - - - - - - - - - -- - -
a l l a n t . p a r r e n o
OneVirtual-Internet
- -
There may be honor among thieves but none among software professionals.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]