Google Answers Logo
View Question
 
Q: Does Apache .htaccess password protection support multiple user/password files? ( No Answer,   1 Comment )
Question  
Subject: Does Apache .htaccess password protection support multiple user/password files?
Category: Computers
Asked by: wizardofyendor-ga
List Price: $5.00
Posted: 26 Aug 2002 14:20 PDT
Expires: 27 Aug 2002 10:04 PDT
Question ID: 58770
It is well-documented that in Apache, you can restrict access to
particular subdirectories using .htaccess files.  For example, the
following lines in an .htaccess file will restrict access to those
listed in a specific file named "users.txt":

  AuthName "restricted stuff"
  AuthType Basic
  AuthUserFile /usr/local/etc/httpd/users.txt

My question is, can you use multiple "AuthUserFile" lines?  For
example,

  AuthUserFile /usr/local/etc/httpd/basic_membership.txt
  AuthUserFile /usr/local/etc/httpd/premium_membership.txt

To consider this question answered I need to know the specific
versions of Apache that support this feature (if any).
Answer  
There is no answer at this time.

Comments  
Subject: Re: Does Apache .htaccess password protection support multiple user/password files?
From: mikeplokta-ga on 27 Aug 2002 02:59 PDT
 
I believe you will find that in all versions of Apache only the last
AuthUserFile entry will be recognised -- but it should be easy enough
to experiment and verify this.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy