Mobile app version of vmapp.org
Login or Join
Shelley277

: How do I get a Flask Application to run on a Subpage? I have a flask app running on port 5000 but that port is blocked on my server and I can't unblock it. Ideally I'd like to just run

@Shelley277

Posted in: #Apache2 #Wordpress

I have a flask app running on port 5000 but that port is blocked on my server and I can't unblock it. Ideally I'd like to just run the app on mywebsite.com/flaskapp, is this possible by just configuring apache2? The rest of the server is essentially a wordpress website and I'd like to not destroy that to run this flask app.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

I assume you're using mod_wsgi on Apache2.

If you have a graphing app you only want to run on /graph, add this to your virtual host config:

WSGIScriptAlias /graph /var/www/graph/graph.wsgi

Navigating to /graph and it'll run the .wsgi you've written for it.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme