Thread: htaccess joy
View Single Post
Old 08-03-2003, 05:29 PM  
fiveyes
Confirmed User
 
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
Another solution is using the htgroup file. This makes for a more complex registration program as well but you basically have one htpasswd file for everything. Then you have a htgroup file that defines which users are in which user groups ("groupname1: user1 user2 user3 ..."). Finally, in your htaccess files, instead of specifying "require valid-user" you'd use "require group groupname1 [groupname2]*" (where groupname2, and more, are optional).

This is a sorthand usage of "require user1 user2 user2 ..." and can be quite powerful for defining access to different parts of the document tree.
__________________
<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