> > Are you proxy-ing?
> > You probably need a SCRIPT_NAME fix WSGI middleware like this :
>
> This already exists as part of paste.deply; you only need to add it to
> your config file:
>
> http://pythonpaste.org/deploy/class-paste.deploy.config.PrefixMiddlew...

There's also wsgiproxy which I think is more up to date version of the
same..
http://pythonpaste.org/wsgiproxy/class-wsgiproxy.middleware.WSGIProxyMiddleware.html

anyway, that PasteDeploy middleware does some funky things with the
PATH_INFO which are not neccessearylu needed in all proxy
configurations. Which is why I wrote the simplest fixer above, so that
the OP could see what it's actually doing.

The PasteDeploy middleware has good points about mapping some of the
other variables, though. I use something similar, but I also check if
the request is coming from a proxy and only then "fix" the environ.

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