On Mon, Sep 25, 2006 at 11:25:08AM +0200, Neil Blakey-Milner wrote:
> 
> On Mon 2006-09-25 (12:45), Timur Izhbulatov wrote:
> > I would like to run my TG application behind Apache httpd. In order to
> > do this I'm trying to use the following rewrite rule:
> > 
> > RewriteRule ^/myapp(.*) http://127.0.0.1:8080$1 [P]
> > 
> > The problem is that TG doesn't know its root is at /myapp and all absolute 
> > URIs
> > are broken.
> > 
> > The solution which comes first is to mount the application on /myapp (BTW,
> > how?).
> > 
> > Are there any other ways?
> 
> In your dev.cfg or prod.cfg, put:
> 
>       server.webpath="/myapp"
> 
> I don't know if that's The Official Way, but it works for me.

Thanks! This is exactly what I need.

-- 
Timur Izhbulatov
OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia
P:+7 495 105 7245 + ext.205 F:+7 495 105 7246 E:[EMAIL PROTECTED]
Building Successful Supply Chains - One Solution At A Time.
www.oilspace.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