Serving a Flask app with a URL prefix

2022-08-11

Quick note: I recently had trouble mount a Flask app under /my-app/, i.e. not in the root path. This article explains nicely how to use SCRIPT_NAME to accomplish this. It’s part of the WSGI standard and works with WSGI-compliant web servers (caveat: the Flask development server is not one of them).

Further reading: