Website not working with "www". please help !!!

Discussion in 'Apache' started by ish1301, Mar 10, 2007.

Thread Status:
Not open for further replies.
  1. #1
    Dear Webmasters,

    Our website zillr.com ( hosted on dedicated server at godaddy.com ) is not working with "www" prefix:-

    http://zillr.com (working)
    http://www.zillr.com (not working)

    It's name servers are set as:-
    ns1.zillr.com (216.69.161.45)
    ns2.zillr.com (216.69.161.119)

    my httpd.conf (details) are :-
    
    NameVirtualHost 216.69.162.119:80
    
    <VirtualHost 216.69.162.119>
    BytesLog domlogs/ip-216-69-162-119.ip.secureserver.net-bytes_log
    ServerName ip-216-69-162-119.ip.secureserver.net
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>
    
    NameVirtualHost 216.69.161.45:80
    <VirtualHost 216.69.162.119>
    ServerAlias zillr.com
    ServerAdmin webmaster@zillr.com
    DocumentRoot /home/xxxxxx/public_html
    BytesLog domlogs/zillr.com-bytes_log
    User xxxxxx
    Group xxxxxx
    ServerName www.zillr.com
    
    User xxxxxx
    Group xxxxxx
    CustomLog /usr/local/apache/domlogs/zillr.com combined
    ScriptAlias /cgi-bin/ /home/xxxxxx/public_html/cgi-bin/
    </VirtualHost>
    
    <VirtualHost 216.69.162.119>
    BytesLog domlogs/host.zillr.com-bytes_log
    ServerName host.zillr.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>
    
    Code (markup):
    i appreciate help of any kind ...

    best regards
    Ish
     
    ish1301, Mar 10, 2007 IP
  2. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try adding www.zllr.com as a ServerAlias, i.e. replace the line
    ServerAlias zillr.com
    with
    ServerAlias zillr.com www.zillr.com
     
    rodney88, Mar 10, 2007 IP
  3. ish1301

    ish1301 Banned

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey i have changed it to like this but still no solution.

     
    ish1301, Mar 10, 2007 IP
  4. ish1301

    ish1301 Banned

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    OK issue resolved :) thanks @rodney88

    My current ServerAlias

    ServerAlias zillr.com www.zillr.com *.zillr.com


    But i really don't know the purpose of this line *.zillr.com can anyone explain it please

    - Ish
     
    ish1301, Mar 11, 2007 IP
  5. fm91dot7

    fm91dot7 Peon

    Messages:
    80
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    DNS add cname: www
     
    fm91dot7, Mar 17, 2007 IP
Thread Status:
Not open for further replies.