Devraj Mukherjee <[email protected]> wrote: >Hi all, > >I am using mod_wsgi to run my WSGI apps under Apache. Generally my >Apache/mod_wsgi configuration has a handler for HTML pages (using Flask >or >webapp2) and we /api maps to another router for our API handled by our >framework (http://github.com/prestans/prestans) > > WSGIScriptAliasMatch ^/api/(.*) /srvapp/api.wsgi > WSGIScriptAliasMatch ^/(.*) /srv/app/page.wsgi > >am wondering if I can do the same in Werkzeug? All the examples I've >come >across seem to indicate that run_simple takes a single callable. > >Alternatively can I use Flask or another router to manage the two >endpoints? > >Thanks for any pointers and sparing your time.
http://flask.pocoo.org/docs/patterns/appdispatch/ Basically "mounting" wsgi applications on different paths, being one wsgi app for the server. -- Markus (from phone) -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pocoo-libs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
