Apache Server configuration support - Dynamic Multi-level Subdomain Virtualhost Config... Need help

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > June 2007 > Dynamic Multi-level Subdomain Virtualhost Config... Need help





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 Dynamic Multi-level Subdomain Virtualhost Config... Need help
alan

2007-06-19, 1:31 pm

I'm working on a development web-server and am trying to get a
multilevel subdomain setup working.

Basically, imagine the following subdomains:
http://project1.user1.domain.com >> /home/user1/project1/www/
http://project2.user1.domain.com >> /home/user1/project2/www/
http://project1.user2.domain.com >> /home/user2/project1/www/
http://project3.user2.domain.com >> /home/user2/project3/www/

I'd like to do this dynamically, so we don't have to maintain an
increasingly complex virtual hosts configuration.

I've tried playing with the examples [URL="http://httpd.apache.org/
docs/2.0/vhosts/examples.html"]here[/URL], but nothing has come close
to working for me, yet.

Does anyone have a working example of this type of dynamic setup, or
suggestions on approach. I've spent most of the morning reading about
it and I haven't made much progress.

thanks a lot,
-alan-

Joshua Slive

2007-06-19, 7:24 pm

On Jun 19, 1:54 pm, alan <zeroaster...@gmail.com> wrote:
> I'm working on a development web-server and am trying to get a
> multilevel subdomain setup working.
>
> Basically, imagine the following subdomains:http://project1.user1.domain.com>> /home/user1/project1/www/http://project2.user1.domain.com>> /home/user1/project2/www/http://project1.user2.domain.com>> /home/user2/project1/www/http://project3.user2.domain.

com>> /home/user2/project3/www/
>
> I'd like to do this dynamically, so we don't have to maintain an
> increasingly complex virtual hosts configuration.
>
> I've tried playing with the examples [URL="http://httpd.apache.org/
> docs/2.0/vhosts/examples.html"]here[/URL], but nothing has come close
> to working for me, yet.
>
> Does anyone have a working example of this type of dynamic setup, or
> suggestions on approach. I've spent most of the morning reading about
> it and I haven't made much progress.


That would be a very standard application of mod_vhost_alias:
http://httpd.apache.org/docs/2.0/mo...host_alias.html
http://httpd.apache.org/docs/2.0/vhosts/mass.html

Joshua.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com