Domain want resolve withour www

horusprim

Registered
Jul 24, 2006
1
0
151
I am a newbie server administrator for a dedi box. Both WHM and Cpanel are used for this server.
This is my problem:

There are about 7 shared domains installed on this server. 6 of theses domains can be accessed by typing http://domain-name.com or http://www.domain-name.com.

However, the last domain can only be accessed by typing http://www.domain-name.com .
If http://domain-name.com is used then I get a cpanel error message saying that:
"There is no website configured at this address…."

What can I do to fix this?:(
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
horusprim said:
However, the last domain can only be accessed by typing http://www.domain-name.com .
If http://domain-name.com is used then I get a cpanel error message saying that:
"There is no website configured at this address…."(
You might need to add an A record called www pointing to the same IP address. Run this command at the prompt and watch for errors:
/etc/rc.d/init.d/httpd configtest

Also, make sure that ServerAlias www.domain.com is setup in the VirtualHost section of the domain. Something like:

ServerAlias www.domain.net domain.net
Restart httpd:
/scripts/restartsrv httpd