Apache Server configuration support - Complex virtual hosting inside user's home directory.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2007 > Complex virtual hosting inside user's home directory.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Complex virtual hosting inside user's home directory.
michael.desoto@gmail.com

2007-09-10, 1:42 am

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?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com