mod wsgi - mod_wsgi: Multiple instances of the same app, with different configurations -
i want host multiple instances of application different configurations. have set this:
wsgiscriptalias /foo /path/to/app.wsgi <location /foo> setenv config foo.conf </location> wsgiscriptalias /bar /path/to/app.wsgi <location /bar> setenv config bar.conf </location> app.wsgi looks this:
def application(environ, start_response): if not config.is_loaded: config.load(environ.get("config")) [...] this seems work, wonder if right - ie requests /foo always arrive @ instance of app loaded foo.conf?
also, there improve way set up? (note: need run on windows)
i think figured out through rtfm :-)
the default wsgiapplicationgroup %{resource} should apply, %{resource} beingness distinct /foo , /bar aliases.
since each application grouping executed in it's own sub-interpreter, there should in fact distinct instances of application 2 locations.
mod-wsgi
No comments:
Post a Comment