I don't believe this is an issue with Apache. It's more likely that your authoritative DNS simply doesn't have an entry for the non-WWW version of your web site. For instance, nslookup www.example.com will return the IP address of your server. If you do nslookup example.com it should also return the IP address of your server; if it doesn't, fix that first.

Only top voted, non community-wiki answers of a minimum length are eligible