Question

Creating multiple droplets from one account

Posted December 8, 2014 6.1k views

Hi,
I signed up with the $5 dollar pack. I created one droplet. Then i created one another droplet, during that I again clicked on $5 dollar.
So does that mean I am going to be charged for $10 dollar?
I actually want only one droplet but I have two parts of my website:
1) The root like the myexample.com
2) Subdomain like api.myexample.com

The first one will host a wordpress site while the second one will run a flask app.
How do I do it using only one single server?

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.

×
1 answer

Each droplet you create is billed at it’s hourly price ($0.0074 for the 512MB) and is capped in each calendar month at the monthly rate ($5 for the 512MB plan) so if you left your two droplets running for the full month you would indeed incur $10 in charges.

You can point multiple domains or subdomains to a single droplet and configure virtual hosts in your apache configuration for each one. You can find a tutorial on this here.

To run flask you will need to set up wscgi for apache as well.

by Justin Ellingwood
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 14.04 VPS.
Submit an Answer