[Zope] Accessing .gif on disk with Python Product?

Martijn Pieters mj@digicool.com
Tue, 8 Aug 2000 20:03:19 +0200


On Tue, Aug 08, 2000 at 12:45:02PM -0400, Evan Simpson wrote:
> From: Martijn Pieters <mj@digicool.com>
> > I still think something else was broken, SiteAccess should (and does, as
> far
> > as I know) stay away from SCRIPT_NAME.
> 
> Yep.  Environment/CGI variables are left alone by the virtual hosting
> machinery; only Zope-specific ones are altered.
> 
> An example of a virtual hosting setup which won't work with SCRIPT_NAME:
> Apache on machine www.foo.com proxies requests for /Zope/* to machine
> z.foo.com:8080.  In this case SCRIPT_NAME is blank, and the src of an image
> on http://www.foo.com/Zope/page constructed with it would resolve to
> http://www.foo.com/image.gif, rather than http://www.foo.com/Zope/image.gif.
> This is not a contrived example -- people are doing this.
> 
> SCRIPT_NAME will work in simple cases, but BASE1 ought to work in all cases,
> and using it is a better habit to have in general.

We better file a Collector item on this then, as the current Zope Management
Interface uses it still.

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