Nov-15-2018, 10:36 PM
http://flask.pocoo.org/docs/1.0/deploying/mod_wsgi/
1) You'll need to install the mod_wsgi module, so Apache knows how to communicate with python/flask.
2) You'll need to make a something.wsgi file, which will just be one line of code, and is used to let Apache know what callable object will handle requests (it's Flask's
3) You need to edit the Apache config file so it knows which folder contains your wsgi program, and also what url(s) that app should be handling. The config file is probably in
But also, your file will never "look for" "bcast.xml". Apache will handle the url, since that's what servers do, and it'll run your url handler when that uri is requested.
1) You'll need to install the mod_wsgi module, so Apache knows how to communicate with python/flask.
2) You'll need to make a something.wsgi file, which will just be one line of code, and is used to let Apache know what callable object will handle requests (it's Flask's
app
, so there's nothing else you need to do here).3) You need to edit the Apache config file so it knows which folder contains your wsgi program, and also what url(s) that app should be handling. The config file is probably in
/etc
, and it's probably named either http.conf
or apache.conf
or maybe httpd.conf
. But also, your file will never "look for" "bcast.xml". Apache will handle the url, since that's what servers do, and it'll run your url handler when that uri is requested.