Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Authenticating with .htaccess

Quote Reply
Authenticating with .htaccess
Background: I have a program that adds users to MySQL database AND to an .htpasswd file (or whatever its called). This way, my users authenticate through .htaccess to enter my password protected dir. Then, to use the DBMan SQL stuff, they must sign in once more with the program.

Is there a way to have DBMan SQL authenticate off an .htaccess file?

I already copied the .htaccess file that is used on www.mydomain.com/protected/ to my www.mydomain.com/programs/db/ dir.

The paths for the two are:



However, it did not work for me. What can I do? Why didnt it work? Should it be placed somewhere else?

Heres what my htaccess file contains: (and works on my /protected dir)


AuthUserFile /usr/local/etc/httpd/vhosts/mydomain.com/htdocs/programs/profiles/data/pass/.htpasswdmembers
AuthType Basic
AuthName "Members Area"

require valid-user


The AuthUserFile /usr/local/etc/httpd/vhosts/mydomain.com/htdocs/programs/profiles/data/pass/.htpasswdmembers file is published by a program called Widexl Members Admin CGI SQL, which is the program used to create the accounts on both MySQL and .htpasswd... because theyre identical, I think only authenticating with the .htaccess should do the trick... the question is: How?

Last edited by:

ecamty: Sep 3, 2003, 1:50 AM