Blog

Add a new blog
December 10

Run your Python Flask app with existing Apache server

If you already have an EC2 with Apache, you can use it to run your Python Flask app. Install and Enable mod_wsgi: $ sudo apt-get install libapache2-mod-wsgi-py3 python-dev $ sudo a2enmod wsgi  Create a Flask app if you don't have one. See my other blog for create / run flask app.  Configure and Enable a New Virtual Host: $ sudo nano /etc/apache2/sites-available/MyFlaskApp.conf Add the following conf code...

June 21

Configure Apache to Support SSL

Creating the SSL Certificate sudo a2enmod ssl sudo service apache2 restart Generate a Self-signed Certificate sudo openssl genrsa -out ca.key 2048 sudo openssl req -nodes -new -key ca.key -out ca.csr Lastly, generate a self-signed certificate (ca.crt) of X509 type valid for 365 keys. sudo openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt Create a directory to place the certificate files we have created. sudo mkdir /etc/apache2/ssl sudo...

Send us a message. We will reply as soon as we can.