On Wednesday 02 July 2008 01:50:02 Max wrote:
> Hello,
>      Is there any way to run different TurboGears applications on the
> same port of a server? You know how Apache allows different users to
> separate their websites using 'http://server/~username' format. That
> way a single instance of Apache is running on port 80 but can serve
> completely separated websites on the same server.
> Is there any way to achieve this using TurboGears?
> I suppose the logical thing would be to run different applications on
> different ports but I only have port 80 available that is open for
> access and I need to host completely different TurboGears applications
> on the same server.
> Any help would be appreciated.

It is possible.

But you'll have to think different.

This that you only have ONE application, i.e., only one RootController and 
that one will import, e.g., two or three other modules that are your complete 
applications.

I do that here with one big application and modules for that application (e.g. 
an ERP is the application, modules for HR, Finance, Planning, etc. are the 
modules I would import at the ERP application).

They can have interdependence and share your master.kid / master.html / master 
template or they can be completely independent.  It is all up to how you 
design it.

So, it is definitely doable and it works. :-)

But you might consider running Apache / nginx / lighttpd / whatever at port 80 
and dispatching to several apps using TG that are accessible only to / from 
localhost.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to