Web Hosting Talk







View Full Version : Cant access a site using www.domain.ccom only domain.com please help!!


mtlguyca
11-08-2006, 09:47 PM
Hello,

As I said in the title I cant access one of the sites I am hosting by www.domain.com
The only way it works is by typing domain.com...
Any clue how to fix that in cpanel or whm?

Thanks

galacnet
11-08-2006, 09:55 PM
Shouldn't this be in the tech help section??

Anyway check your DNS and the A record pointing.
Alternatively if its a new doman, maybe the Nameservers have not resolved yet.

insiderhosting
11-08-2006, 09:58 PM
Check the httpd.conf file to make sure that there is a ServerAlias entry for both domain.com and www.domain.com

-Steven

OnlineRack
11-11-2006, 05:29 AM
most likely you do not have the www record setup right in your DNS or not replicated as mentioned before.... Check with your provider

AH-Tina
11-11-2006, 09:49 AM
If this is a relatively new account, its probably a DNS caching issue with your ISP and you just need to wait a day or two for it to work itself out. What is the domain name, so that we can check it for you?

--Tina

grrrr
11-12-2006, 02:29 PM
Pretty much as the others said, check your DNS records;
Name - Type - Value
@ - A - 123.123.123.123
* - CNAME - domain.com.

Replace 123.123.123.123 with your site's IP address
Replace domain.com with your domain name (without leading www) - note that the . at the end is IMPORTANT

The * means that any prefix will direct to your site; e.g. ftp, mail, etc.
To limit it to specific prefixes then simply replace * with www or whatever

The * is an excellent way of creating dummy sub-domains as any prefix will be directed to your default directory. With some judicious scripting you can check what the prefix used was and server different content as appropriate; great for social sites as you can let people use <username>.domain.com to go straight to their personal home page.

derek.bodner
11-12-2006, 04:28 PM
Ping www.domain.com

If it pings to the same IP as domain.com, then check httpd.conf for a server alias. If not, then the DNS needs to be updated, with www as a name to domain.com