I am trying to run a flask app on apache wsgi, here is my virtualhost file:
<VirtualHost *:80>
ServerName 127.0.0.1
ServerAdmin [email protected]
WSGIScriptAlias / /var/www/classifier/classifier.wsgi
<Directory /var/www/classifier/classifier/>
WSGIApplicationGroup %{GLOBAL}
Order allow,deny
Allow from all
</Directory>
Alias /templates/ /var/www/classifier/classifier/templates/
<Directory /var/www/classifier/classifier/templates/>
WSGIApplicationGroup %{GLOBAL}
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/www/classifier/error.log
LogLevel warn
CustomLog /var/www/classifier/access.log combined</VirtualHost>
and here is my wsgi file:
#!/usr/bin/python
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/classifier/")
from classifier.server import app as application
application.secret_key = ''
when I try to access the server through the external ip address, I am getting Apache2 Ubuntu Default Page. What am I doing wrong here?
~