The problem here is that Google sees the same content being served on multiple domains and will knock down your search ranking as a result. The way to remedy the situation is to utilize Apache's mod_rewrite so that a 301 request pushes the user to your main url. The only caveat being that no matter which domain you type into the browser url bar, it will then be rewritten to the main domain. Here is an example of the code below that you can add to your virtual host file: