Deploying flask app to Apache shared hosting
问题 I am trying to deploy a simple flask application in the Apache shared hosting server. I am not sure what is wrong here. I am stuck at the .cgi file for now. The flask app - hello.py: #!/usr/bin/python from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!\n" if __name__ == "__main__": app.run() The myapp.cgi file: #!/usr/bin/python import os from wsgiref.handlers import CGIHandler from hello import app os.environ['SERVER_NAME'] = '127.0.0.1' os.environ