Domaing Mapping, Subdomains

Discussion in 'Site & Server Administration' started by ronsard, Sep 9, 2005.

  1. #1
    Hello Everybody,

    I am building a site now on which I would like to be able to host a bunch of domains mapped onto individual directories.

    i.e. http://maindomain.com/jimbrown is the user's domain.

    i would then like to map http:/jimbrown to that address and have navigation work as though it was on its own server.

    I.e. contact.html would show up as http://jimbrown.com/contact.html and not http://maindomain.com/jimbrown/contact.html.

    Or would I have to do it with subdomains (as Typepad does, a dreadful system)?

    Is there some way to do this with a combination of CNAME and mod_rewrite?

    Pardon me for any errors of terminology. I am more expert on SEO and CSS than I am with Apache and server issues. Any guidance will be most welcome.

    If there is a good article out there on the web on these issues please point me to it. I've done a fair amount of searching and not come up with much useful.

    Cheers,

    Ronsard
     
    ronsard, Sep 9, 2005 IP
  2. aqi32

    aqi32 Active Member

    Messages:
    225
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #2
    aqi32, Sep 12, 2005 IP
  3. Blogmaster

    Blogmaster Blood Type Dating Affiliate Manager

    Messages:
    25,924
    Likes Received:
    1,354
    Best Answers:
    0
    Trophy Points:
    380
    #3
    I think Ron was just giving us an example :rolleyes:
     
    Blogmaster, Sep 12, 2005 IP
  4. johnt

    johnt Peon

    Messages:
    178
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can use a combination of the DocumentRoot directive and mod_rewrite.
    Basically you would use DocumentRoot to say that the domain jimbrown.com was served by the physical path of maindomain.com/jimbrown. You would then use mod_rewrite to ensure that jimbrown.com always showed up in the address bar.

    cheers

    johnt
     
    johnt, Sep 13, 2005 IP