Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Dec 2001
    Location
    Bodo, Norway
    Posts
    32

    Default www.domain.com is working, domain.com is not

    Hi

    Not sure if this is the right spot for this. If not please move to right forum.

    Anwyay, I'm having a problem with the configuration of one domain. the www.domain.com works just fine, but if I enter domain.com I only get the cpanel page, "Great Success !
    Apache is working on your cPanel® and WHM™ Server"

    Now, I'm guessing this is either because of my dns setup or httpd.conf setup is somehow faulty. Could anybody give me a hint what to look for or how to solve this?

    thanks,

    T
    Last edited by thernes; 08-12-2007 at 07:02 PM.

  2. #2
    Member ddeans's Avatar
    Join Date
    Feb 2004
    Location
    Maryland
    Posts
    302

    Default

    You have created this "www.domain.com" account in WHM right?

  3. #3
    Member
    Join Date
    Dec 2001
    Location
    Bodo, Norway
    Posts
    32

    Default

    Yes, and it was working just fine until I moved the account to a new server.

  4. #4
    Member koolcards's Avatar
    Join Date
    Oct 2003
    Location
    Tampa, Fl
    Posts
    146

    Default

    Look for both statements in the 'VirtualHost' container for that domain in your httpd.conf:

    ServerName www.YourDomain.com
    ServerAlias YourDomain.com


    The order doesn't matter as long as both exist.


    Check your DNS zone file for the domain for either an "A" record or a "CNAME" record for the "www" in that domain. Oops, it must exist or the www.YourDomain.com wouldn't work :/

  5. #5
    Member
    Join Date
    Dec 2001
    Location
    Bodo, Norway
    Posts
    32

    Default

    hmmm..I now notice that www.domain.com points to my new IP while domain.com points to my old ip. Better check those DNS records.

  6. #6
    Member
    Join Date
    Dec 2001
    Location
    Bodo, Norway
    Posts
    32

    Default

    well...*laughing*...sometimes it's also useful to check the host-file on your local windows PC. I mnaully edited the hostfile the last time I moved the domain, so that my computer would "maually" resolve it and had forgotten to remove the entry from the host file

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2002
    Posts
    57

    Default

    Cache'd entries in the name server you are using can also cause such things.. :-)
    Roman Kazan
    roman@escape.com
    http://www.escape.com
    Online Service Provider since 1987.

Similar Threads & Tags
Similar threads

  1. domain not working with www
    By Chriz1977 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-29-2008, 08:03 AM
  2. www.domain.com not working :(
    By SebastianC in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-21-2008, 11:13 AM
  3. www.domain.com not working, domain.com works
    By Bucanero in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-25-2007, 05:29 PM
  4. Replies: 2
    Last Post: 07-24-2007, 09:39 AM
  5. www.domain.com/cpanel not working
    By ElliotAdderton in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-18-2006, 11:45 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube