It's pretty easy, and it's actually how we run most of our J2EE 
applications as well.  mod_proxy is provided with Apache2, if I remember 
correctly.  It may not be enabled by default with all installations, 
although on Gentoo it is.

Here's what my virtual host configuration looks like:

<VirtualHost *:80>
     ServerAdmin [EMAIL PROTECTED]
     # this doesn't really ever get used, as you'll see, but
     # Apache complains if it doesn't exist
     DocumentRoot /path/to/your/application/static
     ServerName yourserver.example.org

     # Proxy everything through to whatever port
     # CherryPy is running on.
     ProxyPass / http://127.0.0.1:8000/
     ProxyPassReverse / http://127.0.0.1:8000/

     # You could also do something like this:
     # ProxyPass /myapp http://127.0.0.1:8000/
     # ProxyPassReverse /myapp http://127.0.0.1:8000/
     # (but watch out that the links in your app still work)
</VirtualHost>


Hopefully that helps -- let me know if you would like any clarification.

Thanks,

Tim


marcelo ametller wrote:
> El Monday, 1 de Mayo de 2006 23:51, Timothy Freund escribió:
> 
>>I set up TurboGears to run under CherryPy and I use mod_proxy to proxy
>>the requests through Apache.
>>
>>I used this guide to get the TurboGears processes running under
>>supervisor:  http://ivory.idyll.org/articles/basic-supervisor.html
>>
>>My initial thought was to use mod_python just to keep application
>>startup/shutdown easy, but since the CherryPy guys suggest running stand
>>alone I deferred to their judgment.  Setting up supervisor was very
>>easy, and it's nice to be able to take individual applications up or
>>down without restarting Apache.
>>
>>I'm new to deploying CherryPy/TurboGears apps, so take the above with a
>>grain of salt.
>>
>>Hope that helps,
>>
>>Tim
> 
> 
> What documentation or tip,  can I use for install mod_proxy with turbogears 
> and apache2 ?
> 
> 


-- 
Timothy Freund
http://digital-achievement.com
http://edodyssey.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to