----- Original Message ----- From: "Martijn Pieters" <mj@digicool.com> To: "Evan Simpson" <evan@digicool.com> Cc: "Christian Theune" <ct@gocept.com>; <zope-dev@zope.org> Sent: Friday, June 08, 2001 9:31 AM Subject: Re: [Zope-dev] Bug in Zope VersionControl
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 '/')
The fix is now in the 2.4 trunk. Andreas