Thread: htaccess help
View Single Post
Old 12-07-2002, 03:47 AM  
fiveyes
Confirmed User
 
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
When you use a .htaccess file (or, better, a Directory block in your config file) for authentication, it establishes a "realm" within a directory tree. Each realm has one data file, usually called .htpasswd, to resolve the User Name:Password combinations to determine a required valid-user. Realms can be overridden in a subdirectory within a realm, but not nested.

So, no, there is no coding that will have htaccess check two password files. However, the opposite can be done: You can use one central htpasswd file for more than one site with the use of the htgroup file (and a lot more tricks can be done, as well!)..
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A>

<FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER>
fiveyes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote