[Zope-dev] Bug in Zope VersionControl

Martijn Pieters mj@digicool.com
Fri, 8 Jun 2001 15:31:00 +0200


On Fri, Jun 08, 2001 at 09:36:53AM -0400, Evan Simpson wrote:
> From: "Martijn Pieters" <mj@digicool.com>
> > REQUEST['SCRIPT_NAME'] is the root of the Zope server. In a pure ZServer
> > environment, this is '/'. In a situation where the Zope server is running
> > behind another webserver, and is not at the root of that server,
> > SCRIPT_NAME represents the path to the Zope server.
> 
> SCRIPT_NAME is not reliable in the presence of virtual hosting.  Use
> REQUEST['BASEPATH1'] instead.

When we fix this problem, we indeed should use BASEPATH1. BASEPATH1 is
also empty when in a ZServer-only situation, so we should still use
path=(REQUEST['BASEPATH1'] or '/').

-- 
Martijn Pieters
| Software Engineer  mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------