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

I'm planning on getting a VPS account and I'm wondering, if I get 2 domain names, how do I configure my VPS account to accomodate them? I'm planning on using Apache as my webserver. Thanks in advance!

share|improve this question
up vote 1 down vote accepted

all your DNS entries for different domains will point to the same ip address - ip of your vps; your apache will serve different content based on the host name that is requested.

this feature is called vhosts. you can find basic description of the idea on apache project help page. and some tutorials: here or there.

share|improve this answer
Yup, just configure the ServerNames in the vhost directive to the appropriate domain names and you're set. – David Rickman Apr 25 '10 at 11:01

Your Answer


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