GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can I put two AuthUserFile directives in one .htaccess file? (https://gfy.com/showthread.php?t=676589)

Miura 11-13-2006 03:05 AM

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!

darksoul 11-13-2006 03:10 AM

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

run this by cron every minute
and use the resulting file as AuthUserFile

Miura 11-13-2006 03:17 AM

Thanks a million darksoul!


All times are GMT -7. The time now is 02:15 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123