Deploy multiple flask apps in a single remote server using Apache

Today, what I came across was not so special. I wanted to deploy two separate flask apps on the same ubuntu virtual machine server in cloud of DigitalOcean. Follow the steps below to achieve that.

1. Configure the .conf file with separate definitions of app files and log files.
This file is seen in the location /etc/apache2/sites-available
2. Configure the .wsgi file also. This file is located in the app folder.
3. Define a 'A' record in the domain DNS management pointing to the IP of the droplet in DigitalOcean.

That's all. You are done.

One thing I noted - Only one instance of Numpy or Pandas will run . Plan the apps accordingly. Or else it will result in RunTime errors. The error file can be seen in /var/log/apache2/