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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-13-2006, 03:05 AM   #1
Miura
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
Miura is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-13-2006, 03:10 AM   #2
darksoul
Confirmed User
 
darksoul's Avatar
 
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
run this by cron every minute
and use the resulting file as AuthUserFile
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-13-2006, 03:17 AM   #3
Miura
Confirmed User
 
Join Date: Jan 2005
Posts: 278
Thanks a million darksoul!
__________________
Alex
Miura is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.