anders pearson wrote: > On 2006-11-28 22:46:56 -0000, Stefan Meier wrote: > > Proxying to several standalone TG servers is not an option. The Apache > > currently provides CGI and mod_python (but can add other modules, I > > have control over it). I am currently working with the mpcp bridge to > > connect TG to mod_python, but that seems to work only for one TG app, > > and I would have to deploy multiple ( <= 10 ) TG apps within one and > > the same apache, each with their own env, DB connection etc. > > I've had no problem deploying multiple TG apps with mod_python. The > only catch is that you have to give each its own virtual host if you > don't want to jump through crazy hoops.
The only reason that multiple VirtualHost containers work is that mod_python will by default assign them different Python interpreter instances where the name of the interpreter is the name of the virtual hosts. As I pointed out in another post you can use the PythonInterpreter directive explicitly to control which Python interpreter instance is used for a specific part of the URL namespace. Thus you could host two distinct TG applications within the same VirtualHost container. There is no requirement that you must use separate VirtualHost containers. I thought I should just clarify this before everyone starts to think that multiple VirtualHost containers are the only way. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

