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.

Neil
-- 
Neil Blakey-Milner
[EMAIL PROTECTED]
http://mithrandr.moria.org/

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