Complex virtual hosting inside user"s home directory.
am 10.09.2007 03:38:59 von michael.desotoHi all,
I've read the httpd docs and tutorials back and front, and yet an
answer escapes me. Setting up virtual hosting is pretty easy all
things considered. But what about dynamic mass virtual hosting from
separate user directories.
The way my customers are mapped now goes something like this:
/home/user1/www/domain.com/html => http://domain.com
/home/user1/www/otherdomain.com/html => http://otherdomain.com
/home/user2/www/sub.domain.com/html = http://sub.domain.com
I'm basically one step (or directory level) away from the typical
virtual host setup. But right now I can only figure out how to get
Apache to work if I statically configure each virtual host.
I would love to be able to do something like
DocumentRoot /home/(*.)/www/%0/html (or whatever the right %0 key is
-- don't have the docs handy)
I know I can control the
www/*/html), but this seems to only work with that one command.
Everywhere else Apache throws an error.
I would love to do this without having to do mod_rewriting for
virtual hosts. Any ideas? Any advice?