| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jan 2003 
				
				
				
					Posts: 1,630
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				.htpasswd questions
			 
			Can you have more then one .htpasswd file in your root directory? 
		
	
		
		
		
		
		
	
	Can you have it like this: .htpasswd .htpasswd2 .htpasswd3 .htpasswd4 and so on... I want my sites (hosted on the same server) to use different .htpasswd files but I am not sure how to do this... I hope somebody understands my question...  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Nov 2002 
				Location: nyc 
				
				
					Posts: 3,540
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 no you cant, why dont you just put all the rules in the same .ht file ? 
		
	
		
		
		
		
		
	
	also read this http://www.freewebmasterhelp.com/tutorials/htaccess/  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Feb 2002 
				Location: Amsterdam 
				
				
					Posts: 9,377
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 and location of each .htpasswd file. 
				__________________ 
		
		
		
		
	
	| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jan 2003 
				Location: Los Angeles 
				
				
					Posts: 2,680
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Yes you can. I have one of my servers setup that way. Just specify in your .htaccess where it should look for the password file. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	icq: 237055440  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Nov 2002 
				Location: nyc 
				
				
					Posts: 3,540
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 ohh my bad, i thought he was asking if he could have different htaccess files, sorry. 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jan 2003 
				
				
				
					Posts: 1,630
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: May 2003 
				
				
				
					Posts: 1,025
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Agreed... 
		
	
		
		
		
		
			
		
		
		
		
	
	Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Oct 2002 
				Location: European Union 
				
				
					Posts: 1,752
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Can someone post an example of a .htaccess file using more than one htpasswd file? 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Aug 2002 
				Location: Atlanta 
				
				
					Posts: 936
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 If you're asking if you can have multiple password files for the same DIRECTORY, then the answer is no.  If you want to password protect multiple directories where each directory has it's own password file, then the answer is yes...you just put a .htaccess file in each directory, pointing at the appropriate password file. 
		
	
		
		
		
		
			http://httpd.apache.org/docs/1.3/howto/auth.html has good information... -- Bill 
				__________________ 
		
		
		
		
	
	National Net Hosting. Handled. See our new line of inexpensive Dedicated Servers | Cabinets starting at $795 | CDN [email protected] | 888-4-NATNET | www.nationalnet.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2003 
				Location: Phoenix, Az 
				
				
					Posts: 3,112
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 here you go, this is what I use 
		
	
		
		
		
		
			
		
		
		
		
	
	---- AuthUserFile PWFILES=/var/www/virtual/passwords/passfiles.txt AuthGroupFile /dev/null AuthName "Members" AuthType Basic <limit GET PUT POST> require valid-user </limit> ---- Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#11 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2003 
				Location: Phoenix, Az 
				
				
					Posts: 3,112
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 you can have multiple pass files for one directory. There are a couple ways to do it. 
		
	
		
		
		
		
			
		
		
		
		
	
	Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |