Flask app is a popular framework for developing minimal apps or often creating restful APIs. In this article I’m going to discuss about how to deploy a flask app using WSGI and Apache server over Ubuntu 20.04. This article will be helpful to those people who are deploying flask app for the first time and I have also discussed that how to find some of the errors which may occur during deployment and how to tackle them. Recently, I deployed a flask app on AWS and there I were faced some difficulties. So, main purpose of this article is to share all those difficulties which a beginner may face too. In this article I’m skipping the section about how to create a Ubuntu server on online web service like Amazon Web Service etc. but I’ll suggest first to google it by following the keywords “How to create a Ubuntu server on AWS” or “How to launch and AWS EC2 server and set up ubuntu on it”. Once when you’ll have a Ubuntu server follow this article to deploy your app. Here are some further int...
Apache Reverse Proxy allows you to run one or more backend servers behind a proxy server, without exposing them publicly. It also helps with load balancing. Here’s Apache Reverse Proxy Configuration for Ubuntu/Debian Linux. Apache Reverse Proxy Configuration Step By Step Here’s a step by step Apache Reverse Proxy Configuration for Ubuntu/Debian Linux systems. 1. Install Required Apache modules We require 4 Apache modules to configure Apache reverse proxy – mod_proxy , mod_proxy_http , mod_proxy_balancer , mod_lbmethod_byrequests mod_proxy is the main proxy module that redirects requests and allows Apache to act as gateway to backend servers mod_proxy_http allows support for proxying HTTP requests mod_proxy_balancer and mod_lbmethod_byrequests add load balancing capabilities to Apache web server. Open terminal and run the following commands to install pre-requisite Apache modules. $ sudo a2enmod proxy $ sudo a2enmod proxy_http ...