Some people have more than one domain name for the same website. They just have dns point all the domains to the same ip. If apache can't resolve these names, it defaults to the first vhost defined or the main server if no vhosts are defined. The only issue is that in the url box of the browser, it will show the name of the server it defaulted to. If you want to display the typed in url the user's browser, you can define virtual hosts and share the same DocumentRoot. In other words, you would just have to have a ServerName and DocumentRoot and maybe UseCanonicalName Off in each vhost container. One more option is to Forward thes other domains to your main domain via dns.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.