In the following, we assume a working Flask application with the name of SCRIPT_NAME
. First we need to install a couple of things:
sudo apt-get update && sudo apt-get upgrade
Installing nginx
will fail if apache is running. If your installation breaks half ways, then remove the fragments, stop apache (and I actually suggest removing it in case not needed) and then install nginx again:
sudo apt-get remove nginx* --purge
sudo /etc/init.d/apache2 stop