These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for ServerAlias doesn't seem to work for www on the new forum.
I've set up all the basics of my server (installed a basic Wordpress to test connection to database), but the only problem which still needs fixing is that websites won't load in the browser if I include "www." in the address bar.
My first thought is checking ServerAlias under the Apache directives for this virtual server. Things seem to be set correctly (I've replaced my actual domain name with "mydomain"):
SuexecUserGroup "#1003" "#1003" ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /home/mydomain/public_html
Howdy,
What error do you get when browsing to a domain with 'www' in it's name?
-Eric
In Chrome I get: Oops! Google Chrome could not find www.mydomain.com
I can't even ping the domain when I include the www too: ping: unknown host www.mydomain.com
Howdy,
It sounds like there isn't a DNS entry for the 'www' version of your site.
Where is your DNS being hosted for that domain?
What you'd need to do is log into your DNS provider, and make sure there's a DNS record for 'www.domain.com'.
-Eric
Spot on. I only had an "@" A record for my domain. I needed to add an "www" A record too.
Thank you.