I've inherited a Flask application run using mod_wsgi on an apache server. It came with no debugging setup, so I whipped up a quick debugging script to run the app using the werkzeug.run_simple() method. I'm having issues with porting two mod_wsgi options over to the script.
WSGIPythonPath seems like the simpler one. I'm not quite sure how it works, but does this basically append the specified paths to PYTHONPATH environment variable?
WSGIScriptAlias is the more problematic one. In the apache config it's pretty standard:
WSGIScriptAlias /myapp /path/to/myapp.wsgi
This turns app.route('/login') to /myapp/login in the URL. How do I prefix all URLs with /myapp in the wsgi script in the same manner as WSGIScriptAlias?
Let me know if you need more info and thanks in advance.