2 Domains = 1 site, possible?

Discussion in 'Site & Server Administration' started by Rey, May 11, 2006.

  1. #1
    Hi,

    Basically I want both of my domains to function under one site.

    For example... aaa.com/index.php is the same the one in bbb/index.php. Meaning 2 domains will use the content of one account. Is this even possible?
     
    Rey, May 11, 2006 IP
  2. Joobz

    Joobz Peon

    Messages:
    598
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I suppose so, you could have them access the same mySQL database, but then you run the risk of some sort of dupe content penalty - why not just have one forward to another?
     
    Joobz, May 11, 2006 IP
  3. SiteExpress

    SiteExpress Well-Known Member

    Messages:
    1,355
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    155
    #3
    just point both domains to the server. Direct one of them for the main domain, and park the other on the same.
     
    SiteExpress, May 11, 2006 IP
  4. eklim8

    eklim8 Peon

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    as what siteexpress said.
     
    eklim8, May 11, 2006 IP
  5. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes, you can do it. People do this when they buy variations on a name and/or different extensions of the same domain name.

    The domains need to have the same IP address.

    If you are using Apache, you use virtual name hosting:

    NameVirtualHost *:80
    
    <VirtualHost *:80>
        ServerAdmin webmaster@example1.com
        DocumentRoot /home/web/
        ServerName example1.com
        ErrorLog logs/example1.com-error_log
    </VirtualHost>
    
    <VirtualHost *:80>
        ServerAdmin webmaster@example100.com
        DocumentRoot /home/web/
        ServerName example100.com
        ErrorLog logs/example1.com-error_log
    </VirtualHost>
    
    Code (markup):
     
    clancey, May 11, 2006 IP
  6. Rey

    Rey Well-Known Member

    Messages:
    232
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #6
    The domain parking method works. Thanks for the help guys. ^^
     
    Rey, May 11, 2006 IP
  7. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    or you can do this

    NameVirtualHost *:80
    
    <VirtualHost *:80>
        ServerAdmin webmaster@example1.com
    [B]    ServerAlias www.example1.com example100.com www.example100.com[/B]
        DocumentRoot /home/web/
        ServerName example1.com
        ErrorLog logs/example1.com-error_log
    </VirtualHost>
    
    
    Code (markup):
    Hope it Helps
     
    theblight, May 12, 2006 IP