There are mod_wsgi occurred when I exec it with flask modules on web server.
I did below command after installed mod_wsgi.
mod_wsgi-express start-server run.py
Access below URL. http://localhost:8000/
I found error as below.
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
run.py
from app.app import app
from bottle import route, run
if __name__ == "__main__":
app.run(host='0.0.0.0', port=9999)
The actual module is located on app/app.py
Web page is working with below command.
python3 run.py
Server Amazon EC2 t2.micro
httpd -v Server version: Apache/2.4.46 ()
flask --version Python 3.7.9 Flask 1.1.2 Werkzeug 1.0.1