Flask App Only Shows List Of Files With Apache2
Im trying to host a flask app with an apache2 server. The server works but I'm only seeing a list of files, the wonderful 'index of' page. My code is pretty simple. This is my hell
Solution 1:
You probably did not install mod_wsgi
module for Apache.
http://flask.pocoo.org/docs/0.10/deploying/mod_wsgi/
Apache needs to import the mod_wsgi
module for it to work with python. Further instructions for installation can be found at.
https://code.google.com/p/modwsgi/wiki/QuickInstallationGuide
Once installed, edit your httpd.conf
with LoadModule wsgi_module modules/mod_wsgi.so
If you are on Windows, you will have to download the appropriate mod_wsgi.so
for the python version and architecture. Rename the file to mod_wsgi.so
if it has any python specific version naming and set conf to LoadModule.
Post a Comment for "Flask App Only Shows List Of Files With Apache2"