On Thu, Sep 10, 2009 at 8:56 AM, testwreq wreq <testwreq@xxxxxxxxx> wrote: > Hello, My goal is to password protect a few pages in one of the userdir > (/home/users/vinda). And, I cannot get this to work. Any suggestions will be > welcomed! Below is the configuration in my httpd.conf file: > <Directory /home/*/*/public_html> > Options -Indexes FollowSymLinks IncludesNoExec > Options +ExecCGI > DirectoryIndex index.html index.php index.htm > AllowOverride AuthConfig > Allow from all > Order allow,deny > AddType text/html .html > AddOutputFilter INCLUDES .html > </Directory> > I placed .htaccess in (/home/users/vinda/public_html/labs) because this is > the directory I want to protect. > Below are the contents of .htaccess and it has the .passwd file generated by > htpasswd apache command. > AuthUserFile /www/home/users/vinda/labs/.htpasswd > AuthName "Members Only" > AuthType Basic > require user lab > When I call the page with http://hostname/~vinda/labs, I get the box to > enter the username and password but then I can never pass this. The error in > the eerror log is: > [debug] mod_auth_pgsql.c(774): [client 10.105.9.103] [mod_auth_pgsql.c] - > missing configuration parameters > [Thu Sep 10 10:35:32 2009] [error] [client 10.105.9.103] access to > /~vinda/labs failed, reason: verification of user id 'lab' not configured > Please advise. Am I missing any configuration? > > Thanks much:) > A few thoughts: might need to put the .htaccess file that password protects all the contents of a directory _outside_ of that directory, since that file is required to determine where the authorized users data is stored, and you currently can't access it until you _are_ one of those authorized users... Also, really not a big deal but.. your subject implied that .htaccess is broken. Chances are quite good that it's simply your understanding of .htaccess which is flawed; everyone on this list is here because they're happy to try to help but it might be nice to approach the problem with the attitude "I would really appreciate some help figuring your awesome free software out" rather than "Fix your shit". --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx