This is exactly what I have on working in production, I changed the ip address for this email, on Cent OS 4.4 and Apache 2.0. I followed the examples in the Turbogears book. They were very helpful. Page 360 if you have it.
I also run trac with mod_rewrite too. <VirtualHost 192.168.1.100> RewriteEngine on RewriteRule ^(.*) http://192.168.1.100:8001$1 [P] ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/feestjeproject/public_html ServerName www.feestjeproject.com ServerAlias feestjeproject.com CustomLog /home/feestjeproject/logs/feestjeproject.com-combined-log combined <Directory /home/feestjeproject/public_html> AllowOverride All </Directory> </VirtualHost> On 5/28/07, Francis Lavoie <[EMAIL PROTECTED]> wrote: > > > I've just tried it, but without success. > > Lets say I want to click on a link, the URL will be correct, but the web > server will then drop the <location /path> to return to root. > > apache : <Location /demo/vimba_ibs/> > RewriteEngine on > ProxyPass http://127.0.0.1:8080/ > ProxyPassReverse http://127.0.0.1:8080/ > RequestHeader set CP-Location / > RewriteRule ^(.*) http://localhost:8080/$1 [P] > </Location> > > dev.cfg : server.webpath = "/demo/" > tg.url : href="myhost.com/demo//client" (good) > > result : myhost.com/client instead myhost.com/demo//client (cherrypy > receive ///client instead of /demo//client) > > > > > Le dimanche 27 mai 2007 à 23:21 -0400, Noah Gift a écrit : > For what it is worth I have had very good success with mod_rewrite on > apache. It just worked first time I tried. I use mod_rewrite with > trac too. Definitely pretty easy to use. > > On 5/27/07, Francis Lavoie <[EMAIL PROTECTED]> wrote: > > > > That works, well partially.. > > Sadly, I can't go through turbogears.identity without problems. > > > > I think I'll look to find another way to do this, because I already wasted > > too much time trying > > > > Thank you > > > > Francis > > > > > > Le vendredi 25 mai 2007 à 16:47 +0000, Patrick McKinnon a écrit : > > > > > > Are you always using tg.url from templates turbogears.url from > > controllers to generate links (especially when they are absolute > > paths)? > > > > <a href="${tg.url('/root_path')}">Root Path</a> > > > > > > > > On May 25, 11:13 am, Francis Lavoie <[EMAIL PROTECTED]> wrote: > > > I tried for a long time to make the apache/lighttpd proxy work with my > > > tg app. I was following all the group's ideas, tutorial on tg site, > > > nothing worked. I don't host my site at /, but in subdir like > > > myhost.com/demo/app . And when it was finally working, as soon as I > > > clicked on a link, I was back at the /. > > > > > > I tried this with my application, then the one in the tg book. All the > > > same. Later I found out, that if I don't follow the book example, > > > removing all the leading / in a link ( dashboard instead of /dashboard > > > in whatwhat) everything is working. > > > > > > But being unable to reference directly by the root of my application is > > > a real problem. > > > > > > Maybe I'm still doing something wrong. > > > Here is my config (apache2 in my vhost): > > > ServerSignature Off > > > AddDefaultCharset utf-8 > > > RewriteEngine on > > > <Location /demo/> > > > ProxyPasshttp://127.0.0.1:8080/demo/ > > > ProxyPassReverse http://127.0.0.1:8080/demo/ > > > </Location> > > > > > > in my dev.cfg : > > > server.webpath = "/demo/" > > > [/] > > > base_url_filter.on = True > > > base_url_filter.use_x_forwarded_host = True > > > > > > Is someone encounter a similar problem or have any idea to solve it? > > > > > > Thank you > > > > > > Francis > > > > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

