On Oct 5, 8:19 am, "Lukasz Szybalski" <[EMAIL PROTECTED]> wrote:
> I have a few domains that are pointing to the same location which is
> hosted by apache.
>
> In my apache script I added the proxy statements.
> ProxyPass /webapp/http://127.0.0.1:8080/
> ProxyPassReverse /webapp/http://127.0.0.1:8080/
>
> example.com/webapp points to localhost:8080 root folder.
>
> Now when one of the apps executes it expects this url
> localhost:8080/saveform but proxied back I need it to look like this:
> example.com/webapp/saveform
>
> base_url_filter.base_url = "http://www.example.com/webapp";
> would work great but I have 2 more domains
> example2.com
> example3.com
>
> How do I implement that in turbogears config file?
> Can I use base_url with apache mod_proxy?
> Can I use multiple base_url_filter.base_url in turbogears config file?

The base url filter can be configured to use the X-Forwarded-Host
header to implement multiple proxies; however, there's no builtin
facility for combining that with any extra path info (like "/webapp").

However, the builtin filter is only a couple dozen lines. I recommend
you read it and try making your own similar filter that does exactly
what you need it to.


Robert Brewer
[EMAIL PROTECTED]


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

Reply via email to