The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't open website using www

Discussion in 'General Discussion' started by searchweb, May 27, 2010.

  1. searchweb

    searchweb Registered

    Joined:
    May 27, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I setup one dedicated server but after transfer all data, i can't open the website with www.mysitename.com

    I only can open with mysitename.com. Do anyone know what wrong with the server setting? Thanks.
     
  2. vheeds

    vheeds Member

    Joined:
    Feb 22, 2010
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Make sure to set the server alias in the apache configuration and cname in the mysitename.com dns record as mentioned below. This will solve your issue.

    in apache configuration file

    <VirtualHost 127.0.0.1:80>
    ServerName mysitename.com
    ServerAlias mysitename.com www.mysitename.com
    DocumentRoot /var/www/smokinglinux.com
    </VirtualHost>

    in /var/named/domain.db record
    www IN CNAME mysitename.com.
     
Loading...

Share This Page