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!
Asked
Active
Viewed 215 times
1 Answers
1
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.

pQd
- 29,981
- 6
- 66
- 109
-
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