Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    51
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice