The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Root (Default) Domain

Discussion in 'General Discussion' started by ccuttriss, Oct 31, 2003.

  1. ccuttriss

    ccuttriss Registered

    Joined:
    Aug 1, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Fillmore, CA
    Is there a way to change the default domain (to other than the first domain that was setup on the server)?

    This is causing me a bit of embarassment because the server defaults to my personal site as opposed to my hosting companies site.

    Any ideas?
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear ccuttriss,

    You can change the default domain by

    echo \'domainname\' > /proc/sys/kernel/domainname

    I hope this will help you to solve your problem.

    Regards,
     
  3. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    That does the server only. Try giving ALL of the answer.

    You need to also update the first virtual host in httpd.conf to reflect the correct domainname.
     
Loading...

Share This Page