On Mon, 2002-08-19 at 12:47, r g wrote:
> What is the purpose of the "context"?  They are not used with the cgi adapters, 
>right?
> Why would I have other contexts defined in the config?  How would they be used or 
>referenced?
> Does any of the context functionality address the needs of serving 2 web sites?  Or 
>does
> each web site run off of its own instance of the AppServer?

Ray gave you the mod_rewrite recipes.  Using them with contexts you can
host multiple websites -- though in some cases you might not want to,
for instance, two sites with the same code but different data.  There
you'd probably use mod_rewrite again, but have two rules point to the
same context (adding a GET variable, perhaps, to distinguish the sites).

You may or may not want to serve multiple sites off the same AppServer. 
Contexts aren't insulated from each other -- for instance, I wouldn't
advise running a production site and a testing site off the same
AppServer.  Whether to run two production sites from the same AppServer
is up to you, there's no firm rule.  Some failures (particularly in C
modules) will effect the entire Python interpreter, and hence the entire
AppServer, and could mean that problems on one site would take the other
site down as well.

Contexts are used with all adapters.  They don't do much -- they're
taken from Java, where the contexts have more functionality (related to
configuration, session sharing, and some other stuff).  In Webware they
are largely indistinguishable from subdirectories.

  Ian




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to