HTTPD.CONF Help Needed - Domain not resolving www does

Discussion in 'Apache' started by solarpanelsdirect, Dec 20, 2009.

  1. #1
    So I setup wildcard subdomains and they work great.

    All my subdomains resolve and www resoloves.

    But if you go to my domain lets say you type in mydomain123.com without the subdomain or www it doesnt resolve.

    It was resolving for the past day, but as of this morning it just stopped!

    Any ideas on what might be happening?

    My httpd.conf looks like this
    <VirtualHost x.x.x.x:80>
    ServerName www.mydomain123.com
    ServerAlias *.mydomain123.com
    DocumentRoot /usr/local/apache/website
    </VirtualHost>
     
    solarpanelsdirect, Dec 20, 2009 IP
  2. Hostwaresupport

    Hostwaresupport Guest

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    Did you check your dns zone for your domain? May be 'A' record for www is missed. Either way you can check logs, /usr/local/apache/logs/error_log.
    The logs are key to trace out any issue..

    Run this command from shell.

    tail -f usr/local/apache/logs/error_log | grep mydomain123.com

    and paste here output.
     
    Hostwaresupport, Dec 22, 2009 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    Try to add following A record in your DNS zone:

    @ A IP_ADDRESS

    You will need to wait for couple of hours after adding the record.

    Kailash
     
    kailash, Dec 22, 2009 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    RHS-Chris, Dec 22, 2009 IP
  5. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #5
    Add a CNAME for www in your DNS zone file.

    see this
     
    olddocks, Dec 29, 2009 IP
  6. asagi77

    asagi77 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    you should check you named.conf and its zone files
     
    asagi77, Jan 3, 2010 IP