I am running apache2 (mod-wsgi) on Ubuntu 14.10. I am getting 500 Internal Server Error when serving my web-site. I am also using Flask and Python 3.4, and virtual environment. It appears that Ubuntu has python 2.7 as default, and I need to configure apache2 to look for virtual environment with Python 3.4. Otherwise, I am getting 500 error. I checked apache2 error log file and it shows that the reason for it is because app.wsgi file cannot import flask. And in turn reason for not being able to import flask is because it's in python 3.4 environment while apache2 is in python 2.7.
I tried to fix it by adding the following line into apache2.conf file:
But it does not work.