Web Hosting Talk







View Full Version : multiple htpass files in a AuthUserFile?


milkmycow
07-11-2006, 01:27 PM
I am trying to pull passwords from 2 seperate password files into a 3rd directory.

Ie

dir 1 passes and dir 2 passes can only login to their own folders, not each other, but both can login to dir 3.

so, i tried


AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/home/clubmilk/.htpasswds/3/passwd"
AuthUserFile "/home/clubmilk/.htpasswds/2/passwd"
AuthUserFile "/home/clubmilk/.htpasswds/1/passwd"
require valid-user


but that seems to only pull passes from the Last one listed.

any ideas?

milkmycow
07-12-2006, 12:45 AM
anyone? please help

foobic
07-12-2006, 01:26 AM
Use AuthGroupFile (http://httpd.apache.org/docs/1.3/mod/mod_auth.html#authgroupfile) and require group.