How To Host Multiple Sites Using VestaCP

Hi guys, i wanted to know how can i host multiple sites on my dedicated server. I am currently hosting 1 site on it using VestaCP and its running fine and well. I have only 1 Ipv4 address. So i really have no idea how can i host another site, there is option for a 2nd domain at vestaCP but how that points to the directory i dont know anything. Can you guys please give me some starting hints? Thanks

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hi @Zulqarnainkhan

You can host multiple domains on the same IP.

I have never used VestaCP, but it should be pretty straight forward from what I can read in this tutorial. Simply click the WEB menu and click the green + button.—-setting-up-a-website


The issue with custom name severs is that you need to, ideally, setup multiple IP’s – one for each of the name servers you create. Since DigitalOcean only technically allows a single IP per Droplet, this isn’t possible. The purpose of using multiple IP’s is for redundancy – should one of the name servers go down, the other can pick up the requests.

That being said, custom name servers require registration with your registrar.

You can set your domains DNS to any name servers(s) you wish, valid or not, and the registrar will do as you tell them without actually confirming if they are valid (some do, most don’t).

The best option would be to set your domains DNS to use:

That will allow you to add your domain through the DigitalOcean Dashboard and manage your DNS entries for each domain there.

Once your domain has been added, you can add your A, CNAME, MX, TXT, AAAA, and other DNS records.

You’d then point the main A entry for your domain to your Droplet IP. Optionally, you’d add a CNAME for www and point that to your domain, like so:

A          @          DROPLET_IP
CNAME      www

That’ll make the setup much easier and get things working for you far quicker without having to worry about setting up private name servers (or vanity name servers, depending on where you look).

@hansen i got this result can you please explain ?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel