TG reverse proxy with

11 views
Skip to first unread message

Balt

unread,
May 26, 2009, 9:46:52 PM5/26/09
to TurboGears
Hi all,

I've got a TG app running on http://internalservername:8001
I have successfully installed a reverse proxy tool (this is running on
IIS) so that I can reverse proxy http://therealsitename/admin into the
TG app runnning on the internal server name on port 8001. Now it turns
out that everything poops itself because externally, the path to
access the site is /admin, while internally, it's in the root (/).
This prompts TG to poot out claiming /admin doesn't exist. Which is
true. But..

Is there a way to move a TG app into a sub path so that the paths
mirror on the front and back, i.e. http://internalservername:8001/admin

Cheers

- Balt

cd34

unread,
May 27, 2009, 12:09:24 AM5/27/09
to TurboGears
http://turbogears.org/2.0/docs/main/Deployment/ModProxy.html

[app:main]
use = egg:your_project_name
filter-with = proxy-prefix
# Usual options here

[filter:proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = /wherever_your app_is mounted

On May 26, 9:46 pm, Balt <bindermue...@gmail.com> wrote:
> I've got a TG app running onhttp://internalservername:8001
> I have successfully installed a reverse proxy tool (this is running on
> IIS) so that I can reverse proxyhttp://therealsitename/admininto the
Reply all
Reply to author
Forward
0 new messages