Solved

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

Posted on 2004-04-15
3
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:pepsichris
ID: 10837649
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
ID: 10837655
Can it be done from the same dir though?
0
 
LVL 9

Accepted Solution

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

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

696 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