Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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