I have a static site now where users can create new sites (user home
directories) very easily, but the growth is going to kill me and my
filesystem (to many subdirectories).
I would like to build a 100% DB contained web site. Meaning all users home
directories, files etc.. exists within a database. Any examples or places
to look would be greatly appreciated.
The areas I'm having conceptual trouble with is mainly the *.conf files.
How do I accomplish the same actions as below with a static conf file?
(without restarting the server every time a new user is added)
Here is my current configuration:
For a single directory/location I say:
ACCESS File in /cliffl
# Basic protection
PerlAuthenHandler Apache::AuthTieDBI
PerlAuthzHandler Apache::AuthzTieDBI
PerlSetVar TieDatabase mysql:www
PerlSetVar TieTable user_info:user_name:passwd
AuthName USERS
AuthType Basic
<Limit GET >
order deny,allow
deny from any
allow from any
satisfy all
</Limit>
<Limit POST >
order deny,allow
require $user_name eq cliffl
satisfy all
</Limit>
<Limit PUT DELETE >
order deny,allow
deny from any
</Limit>
# END ACCESS
Then each user has a secure admin subdirectory to configure their presonal
site, protected as below:
ACCESS File in /cliffl/admin
PerlAuthenHandler Apache::AuthTieDBI
PerlAuthzHandler Apache::AuthzTieDBI
PerlSetVar TieDatabase mysql:www
PerlSetVar TieTable user_info:user_name:passwd
AuthName USERS
AuthType Basic
<Limit GET POST>
order deny,allow
deny from any
require $user_name eq 'cliffl'
satisfy all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from any
satisfy all
</Limit>
# END ACCESS