Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to make few mirror domains for

Users should be browsing in* or* domains, but all requests should be sent to* (without redirecting)

I will use it to manage different website languages.


share|improve this question
up vote 0 down vote accepted

This depends on how your server is setup. If you're using a NameVirtualHost for your site, it's easy - you just add the following line:


to the configuration for your virtual host.

If you're not using virtual hosts, you don't need to do anything - apache will serve the same content regardless of what domain name is used to connect to it.

Of course, you also need to make sure that the DNS records for and point to the same server as

If you are using SSL for your website, you need to have a certificate with Subject Alternative Names for all domains you are serving.

share|improve this answer
Thanks @Jenny! I forgot to tell one very important detail. I'm using DirectAdmin for hosting management in VPS. So there I can't define this... – Lucas Apr 15 '13 at 13:07
I have no idea what DirectAdmin is. I would suggest you ask their support. – Jenny D Apr 15 '13 at 13:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.