Dynamic subdomain/document root?

Discussion in 'Site & Server Administration' started by Triexa, Apr 16, 2009.

  1. #1
    I have a feeling this isn't exactly possible, but I hope there is and if not, maybe there is a better way than what I am thinking!

    We will be using SVN for 10+ websites, so we may have:

    /path/site/site1.com/html
    /path/site/site2.com/html
    /path/site/site....com/html
    /path/site/site10.com/html

    We're going to have each developer have their own working copy, like so:
    /path/site/site1.com/html-developer1
    /path/site/site1.com/html-developer2
    /path/site/site2.com/html-developer1
    /path/site/site2.com/html-developer2
    etc...

    This can get a little convoluted - mainly I believe because of the # of websites and the growing # of developers. But right now it makes the most sense, to have each developer have their own working copy but still on our central dev server.

    We could access our own working copy like so:
    developer1.site1.com
    developer2.site1.com
    developer1.subdomainof.site2.com
    developer2.subdomainof.site2.com

    We would have to update the local DNS as well as add a virtual host for every entry. Is there any way to somehow have this be more dynamic... where it could be *anything.ourdomains.com and it goes to *ourdomains.com* documentroot, appending *-anything* to it?

    Hope that could be followed and I hope there is a nice solution! :)

    Thanks
     
    Triexa, Apr 16, 2009 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    kailash, Apr 17, 2009 IP