How to run multiple website on same Droplet that already host an active website?

I’m quite new to backend and servers configurations.

I have a Django website already running using Nginx and Gunicorn and is successfully deployed to my Droplet.

I’m deciding to host multiple websites including test apps of different sorts i.e PHP, Wordpress, Laravel, Java supported backends, on the current droplet. But I don’t know exactly how to do it. I have some rough knowledge of Nginx Blocks. However I cannot dare to experiment with it because I’m afraid if something goes wrong my current running website would go down.

I don’t know how to do it? Will it affect my current website? How can I separate my current active website form all other process running in my Droplet?

Any help will be appreciated and also I would love to refer me to some tutorials and references so I can achieve what I want.

Note: I’m running Ubuntu 18.04 on my Droplet.



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

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.


As you already have Nginx installed, what you could do is to use separate Nginx Server Blocks for each of your websites.

You can follow the steps here on how to do that:

For PHP you could follow the steps here on how to install it on your server, you can skip the Nginx installation step as you already have this installed:

Hope that this helps. Regards, Bobby