Setting up multisite system with zPanel

May 21, 2014 3.3k views
Hey guys, I've just signed up for DO and I'm currently trying to understand 'how stuff works' here, as I've been using only shared hosting planes so far. Basically, what I would like to achieve (In a perfect world) would be to have next: A single droplet with a zPanel running more than one site. I've managed to install zPanel successfully, and to set up a part of it. What I'm currently trying to achieve though, is to have my IP point to the actual content, instead of zPanel. I would later on add the domain, as I have my live site still hosted somewhere else, and I don't want to mess with the DNS and have the site down for some time. I also want to test this around and get a hang of it, before actually hosting something live. Therefore, my main question would be next. Is it possible to have a couple of different sites managed like this: /public_html/site_1 /public_html/site_2 /public_html/site_3 And having the 'domains' of those sites something like (where x's stands for IP). And of course, later on to substitute those 'domains' with the actual domains. I know this is a true newbie question, but I really don't know where to start :) Hope you guys understand! Marko
5 Answers
Yeah sure you can, I don't know if what I post here is still valid cause from what I found from a little search it was from December 2013. So what I found is that if you open your zpanel and go to Domain Management and add a new domain you can add your domain and choose the directory of your domain for example: points to directory /public_html/site_1 points to directory /public_html/site_2
Hi Marinos,

Thanks for getting back to me.

Yes, I think that's what I understood from it as well. In that case, I guess I should point DNS for my domains to DO DNS, right?

Also, is there a way to preview the 'live site' without having any domain connected to it?

It'll be best to test your new DO installation before changing your DNS settings. So what you can do is below. This will be for Windows 7, but it may be similar on other versions.

1) Open up C:\Windows\System32\drivers\etc\hosts
2) Hosts is the file you'll modify. In it, you should see IP addresses and domain names, such as:
::1 localhost localhost localhost

Add your droplet's IP address on the left, your domain name on the right. Do this for every domain you're testing. All it takes is one space between the IP address and domain name, nothing else needs to be done. Save the file.

3) Click the Start button and search for "cmd" without the quotes. Open that. Here, type in:

ipconfig /flushdns

4) Now your domains will be pointing to DigitalOcean (only on your computer and nowhere else. Nobody will see the change but you). Make sure you have your sites all set up through DO, and you can view them by typing in their URLs.

5) Test, and if everything seems good, go ahead and point your DNS to DigitalOcean. Go back into the hosts file, remove those IP address and domains you added, and then flush the DNS again.
Thanks Bryan - that really makes sense!
I'm on a mac at the moment, but I think I'll be able to get a hang on it.

Thanks a bunch!


I am looking for the same thing but on Ubuntu and not on Windows.
Is their any way to run websites using IP address instead of actually pointing DNS nameservers for domain?

I mean something like we do with cpanel:


Have another answer? Share your knowledge.