Solved

.htaccess pulling from two .htpasswd files - is it possible?

Posted on 2004-04-15
3
275 Views
Last Modified: 2008-03-03
Is it possible to have .htaccess pull the passwords from two .htpasswd files in different locations?

Like so

AuthUserFile /home/data/.htpasswd
AuthUserFile /home/other/.htpasswd
AuthGroupFile /dev/null
AuthName "RESTRICTED"
AuthType Basic
<Limit GET PUT POST>
require valid-user
</Limit>


or something like that?

0
Comment
Question by:dr34m3rs
  • 2
3 Comments
 
LVL 9

Expert Comment

by:pepsichris
Comment Utility
It's done through multiple .htaccess files.  Have a different .htaccess file in each password protected directory and call the required .htpasswd file from there.
0
 
LVL 1

Author Comment

by:dr34m3rs
Comment Utility
Can it be done from the same dir though?
0
 
LVL 9

Accepted Solution

by:
pepsichris earned 125 total points
Comment Utility
Nah, I'm afraid not.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
WCAG audit tools 1 51
pic in header needs to resize on mobile 4 54
WEB Farm 6 22
How search webpage "viewable text" only 1 25
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now