![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2005
Posts: 278
|
Can I put two AuthUserFile directives in one .htaccess file?
Can this work?
AuthName "Password Protected Pages" AuthType Basic AuthUserFile /home/something/.htpasswd AuthUserFile /home/otherdir/.htpasswd Options +Includes AddHandler server-parsed .html order deny,allow deny from all Thanks for your help people!
__________________
Alex |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
nope
it can only read from one file. What you can do is have a script concat those two files into one: Code:
#!/bin/sh cat /home/.htpasswd1 /home/.htpasswd2 > /home/.htpasswd3 and use the resulting file as AuthUserFile |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jan 2005
Posts: 278
|
Thanks a million darksoul!
__________________
Alex |
![]() |
![]() ![]() ![]() ![]() ![]() |