searchweb

Registered
May 27, 2010
1
0
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.
 

vheeds

Member
Feb 22, 2010
13
0
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.