* Roberto Sanchez ([EMAIL PROTECTED]) [030917 08:47]: > I am trying to get Apache 1.3 to prompt for a password for some file located > in a particular directory on one of my sites. > > I created a password file like this: > > # htpasswd -c /etc/apache/passwd <username> > > I entered the password and then created this .htaccess file in the appropriate > directory: > > AuthType Basic > AuthName "Please Authenticate" > AuthUserFile /etc/apache/passwd > Require user valid-user
This will only work if this directory has an appropriate AllowOverride directive in the main httpd.conf. It needs to have AuthConfig in order for this to work. good times, Vineet -- http://www.doorstop.net/ -- http://www.debian.org/
pgp00000.pgp
Description: PGP signature