Make sure that that Apache module WSGI is installed and enabled. For further details about WSGI:
- http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi
- https://www.digitalocean.com/community/tutorials/installing-mod_wsgi-on-ubuntu-12-04
You can find a demo here, and further details about the algorithm here.