how to make my server to host multiple domains?

September 9, 2013 10k views
Hello Friends! I am new with VPS and I want to experiment ... Purchased a vps to learn how to manage them, so I want to know what is the process to set up multiple domains, use my own dns what is the best tools to install in my vps? What is the order you should follow step by step to host multiple domains on my server?
4 Answers
by Etel Sverdlov
Varnish is an HTTP accelerator and a useful tool for speeding up a server, especially during a times when there is high traffic to a site. It works by redirecting visitors to static pages whenever possible and only drawing on the server itself if there is a need for an active process. This tutorial covers installing wordpress on a LEMP stack (with nginx instead of apache), and then installing varnish.
Hi Pablo!

Thanks for your prompt response.

what I want to know is: :

1.- install centOS
2.- I should Install LAMP? or Virtual hosts?
3.- PowerDNS .. Is to change DNS of DO´s for my private dns but.. just in a domain or in "N" domains?
4.- ¿?

What´s better.. ubunto or centos? I need host to aprox 8 or 10 domains between drupal, wordpres and opencart.

Could you tell me what is the order I should follow to ride my vps and get it ready to host these number of sites please?
"I should Install LAMP? or Virtual hosts?"

Those two are NOT mutually exclusive. It's possible to deploy virtual hosts on a LAMP stack. See How To Set Up Apache Virtual Hosts on CentOS 6. In the alternative, see How To Set Up nginx Virtual Hosts (Server Blocks) on CentOS 6

"What´s better.. ubunto or centos?"

Better, in what sense? That's almost an impossible question to answer. Each has its strengths and weaknesses. You're essentially asking Who's better, Michael Jordan or Lebron James?

"PowerDNS .. Is to change DNS of DO´s for my private dns but.. just in a domain or in "N" domains?"

N domains
by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one domain off of a single IP address and allows you to run multiple sites off of a single DigitalOcean droplet. This tutorial describes how to set up virtual hosts with Apache on Centos
"PowerDNS .. Is to change DNS of DO´s for my private dns but.. just in a domain or in "N" domains?"

Also make sure you register the nameserver records at your registrar so that they resolve to your droplet.
Have another answer? Share your knowledge.