This is a discussion on Complex virtual hosting inside user's home directory. within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, I've read the httpd docs and tutorials back and front, and yet an answer escapes me. Setting ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi 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 <VirtualHost ...> DocumentRoot /home/(*.)/www/%0/html (or whatever the right %0 key is -- don't have the docs handy) I know I can control the <directory> group with an asterisk (/home/*/ 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? |