A virtual host for each site and using mod_rewrite to send things off
to a port number is a quick easy way of deploying multiple tg apps on
one server.
Something like:
<VirtualHost *:80>
ServerName www.projectmustard.org
ServerAlias projectmustard.org
RewriteEngine on
RewriteRule ^/static/(.*) /home/tg/tg-sites/mustard/mustard/static/$1
[L]
RewriteRule ^/static(.*) /home/tg/tg-sites/mustard/mustard/static$1 [L]
RewriteRule ^/(.*) http://127.0.0.1:8001/$1 [P]
RewriteRule ^(.*) http://127.0.0.1:8001$1 [P]
</VirtualHost>
On 28/11/06, Stefan Meier <[EMAIL PROTECTED]> wrote:
>
> Hey folks,
>
> I am currently in the process of convincing my company to adopt
> TurboGears as the main platform for small internal webapp projects. One
> of the issues that have come up and that needs to be solved is that we
> need to run multiple TurboGears apps within one Apache server.
>
> 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.
>
> Any help on this is greatly appreciated!
>
> Cheers,
> Stefan
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---