Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    51
    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,608
    Likes Received:
    32
    Trophy Points:
    238
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice