Complex virtual hosting inside user's home directory.

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2007
michael.desoto@gmail.com
 
Posts: n/a
Default Complex virtual hosting inside user's home directory.

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?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0