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.

Domain want resolve withour www

Discussion in 'General Discussion' started by horusprim, Jul 25, 2006.

  1. horusprim

    horusprim Registered

    Joined:
    Jul 24, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I am a newbie server administrator for a dedi box. Both WHM and Cpanel are used for this server.
    This is my problem:

    There are about 7 shared domains installed on this server. 6 of theses domains can be accessed by typing http://domain-name.com or http://www.domain-name.com.

    However, the last domain can only be accessed by typing http://www.domain-name.com .
    If http://domain-name.com is used then I get a cpanel error message saying that:
    "There is no website configured at this address…."

    What can I do to fix this?:(
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    You might need to add an A record called www pointing to the same IP address. Run this command at the prompt and watch for errors:
    /etc/rc.d/init.d/httpd configtest

    Also, make sure that ServerAlias www.domain.com is setup in the VirtualHost section of the domain. Something like:

    ServerAlias www.domain.net domain.net
    Restart httpd:
    /scripts/restartsrv httpd
     
Loading...

Share This Page