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.

cPanel error without www. ?

Discussion in 'General Discussion' started by Latox, Nov 4, 2011.

  1. Latox

    Latox Member

    Joined:
    Nov 3, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    If I go to my website, for example:

    http://www.site.com - it works perfectly.

    If I go to:

    http://site.com - it shows a cPanel default web site page.

    How can I fix this?
     
  2. Latox

    Latox Member

    Joined:
    Nov 3, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I just checked my httpd.conf and there seemed to be a mistype with one of the virtualhosts/aliases.

    I fixed it and now this is working again.

    Could this have caused this?
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What was the actual entry in httpd.conf before and after fixing it?

    Also, did you fix it manually in httpd.conf file? I ask as you cannot manually revise httpd.conf VirtualHost sections. You'd have to fix /var/cpanel/userdata/username/domain.com file (where username is the cPanel username and domain.com is the domain name), then run the following:

    Code:
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak111104
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
     
Loading...

Share This Page