Solved

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

Posted on 2004-04-15
3
279 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xss alert in domino url 9 57
How to make a good PHP + MySQL + JS pagination system? 3 68
Level out logo and increase size? 16 28
SP result not being displayed 5 44
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This video teaches users how to migrate an existing Wordpress website to a new domain.

726 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