Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default Site using www doesnt resolve

    Hello,

    Yesterday we registerd and created 2 domains in our server.
    Everything is ok, files uploaded, dns zones created, httpd virtual host created...

    The problem is that trying to browse the site trough http://www.site.com redirects me to http://XX.XX.XX.XX/ my main server IP address, this page shows a cPanel Welcome message.

    But, using http://site.com/, the site is loaded ok, withouth any problems.

    DNS zone shows:


    Code:
    ; cPanel 11.11.0-BETA_16977
    ; Zone file for site.com
    $TTL 14400
    @      86400    IN      SOA     mydns1.wolo.com. admin.hostingserver.com. (
                    2007092601      ; serial, todays date+todays
                    86400           ; refresh, seconds
                    7200            ; retry, seconds
                    3600000         ; expire, seconds
                    86400 )         ; minimum, seconds
    
    site.com. 86400 IN NS mydns1.wolo.com.
    site.com. 86400 IN NS mydns2.wolo.com.
    
    
    site.com. IN A IP_ADDRESS
    
    localhost.site.com. IN A 127.0.0.1
    
    site.com. IN MX 0 site.com.
    
    mail IN CNAME site.com.
    www IN A IP_ADDRESS
    ftp IN A IP_ADDRESS
    Apache virtual host code
    Code:
    <VirtualHost IP_ADDRESS>
    ServerAlias www.site.com
    ServerAdmin webmaster@site.com
    DocumentRoot /home/siteuser/public_html
    ServerName site.com
    
    <IfModule mod_suphp.c>
      suPHP_UserGroup siteuser siteuser
    </IfModule>
    <IfModule mod_php4.c>
      php_admin_value open_basedir "/home/siteuser:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
      php_admin_value open_basedir "/home/siteuser:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    
    User siteuser
    Group siteuser
    BytesLog /usr/local/apache/domlogs/site.com-bytes_log
    CustomLog /usr/local/apache/domlogs/site.com combined
    Options -ExecCGI -Includes
    </VirtualHost>
    Any ideas?

  2. #2
    Member
    Join Date
    Sep 2007
    Posts
    9

    Default Looks OK

    Everything there looks OK, in my experience the www is the last part of the domain to resolve, leave it for another 24hrs on newly regged domains before thinking it's the server.

Similar Threads & Tags
Similar threads

  1. Website do not resolve without www.
    By Oninji in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-11-2011, 03:01 PM
  2. how to force site to open as www.site than http://site
    By pankajarya in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-10-2011, 11:12 PM
  3. site doesnt load without www
    By webosb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-27-2008, 11:48 PM
  4. DNS Doesnt Resolve
    By sesiri in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-18-2006, 01:27 AM
  5. Domain want resolve withour www
    By horusprim in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-25-2006, 06:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube