I have a flask app that I test in my dev environment with werkzeug but deploy with Apache and mod_wsgi
. In my Apache config I have this classic setting:
WSGIScriptAlias /foo /var/www/html/foo.wsgi
That's great and now my API's URL is like www.blah.com/foo/API/0.1
. However, this makes my dev environment's URL www.whatever.com/API/0.1
which is weird, lol.
How can I define an "alias" similar to the one I've defined with Apache so that my URLs served by werkzeug take the form of www.whatever.com/foo/API/0.1
?
Thanks!