Just moved to a new host

Discussion in 'Site & Server Administration' started by andrenym00, Jul 28, 2009.

  1. #1
    I moved to a new host on a dedicated ip and have 2 addon domains. When I go to my ip address my addon domain comes up. Shouldn't the main domain name be the one showing? I'm using hostgator.
     
    andrenym00, Jul 28, 2009 IP
  2. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Either the main domain should be showing or a holding page for the server or hosting software. Best bet would be to contact hostgator as they're the ones in place to look at what's occurring.
     
    theapparatus, Jul 28, 2009 IP
  3. andrenym00

    andrenym00 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I just spoke to technical support and he told me to go to http://useripaddress/username and the main domain does come up. I wonder why the difference?
     
    andrenym00, Jul 28, 2009 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    Its prob due to the fact that in the virtual hosts setup for apache, the addon domain is listed prior to the main domain, so, when requesting the IP addy, the web server serves up the first site that matches. Just edit the file that contains the virt hosts, and place your main domain first.
     
    RHS-Chris, Jul 28, 2009 IP
  5. andrenym00

    andrenym00 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    t

    Where would I find that? I have access to whm on my hostgator reseller account.
     
    andrenym00, Jul 29, 2009 IP
  6. ssthormess

    ssthormess Active Member

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #6
    If you use cPanel when you create the Addon Domain you must specify a folder for the Domain and by default this directory is /public_html/domainname, but, you can change it to /domainname or /public_domainname for hiding it on the Principal Domain.

    About the Secondary Addon Domain showing in the root of the Dedicated IP Addr i think you must go here.
     
    ssthormess, Jul 29, 2009 IP
  7. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #7
    You would need root access to change the file itself, on cPanel, it is usually located at:

    /usr/local/apache/conf/httpd.conf
     
    RHS-Chris, Jul 29, 2009 IP