How to run flask on apache using mod_wsgi-express on same ip as a subdomain -


i want run flask on apache.i have installed mod_wsgi-express , flask application running on port 8000(localhost:8000) want run application subdomain dont want open new port , want run application on same ip using '/'(ex- localhost/application).i have drupal running on port 80. want drupal run on url(localhost) , flask app on url(localhost/flaskapp) .how can this?

use main apache run mod_wsgi well, instead of mod_wsgi-express. use mod_wsgi-express development.

presuming not have mod_wsgi installed system package, can run:

sudo mod_wsgi-express install-module 

and copy mod_wsgi module apache configuration. command output 2 lines need include in main apache configuration have load mod_wsgi , set correct location python installation or virtual environment.

you should configure main apache installation manually have host flask application using mod_wsgi. see flask documentation on mod_wsgi details, because still want run php application, read:

because put configuration apache depends on linux distribution used, can't tell need put stuff , steps may need enable it.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -