[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

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

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
dr34m3rs
Asked:
dr34m3rs
  • 2
1 Solution
 
pepsichrisCommented:
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
 
dr34m3rsAuthor Commented:
Can it be done from the same dir though?
0
 
pepsichrisCommented:
Nah, I'm afraid not.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now