[6048] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: extend CGI

daemon@ATHENA.MIT.EDU (Ari Luotonen)
Wed Oct 5 12:41:36 1994

Date: Wed, 5 Oct 1994 17:36:14 +0100
Errors-To: listmaster@www0.cern.ch
Errors-To: listmaster@www0.cern.ch
Reply-To: luotonen@neon.mcom.com
From: luotonen@neon.mcom.com (Ari Luotonen)
To: Multiple recipients of list <www-talk@www0.cern.ch>


> But that can be a difficult for non-www-admins. Even for webmeisters,
> that's a nuisance if there are lots of scripts, imagemaps, etc.

What I did for imagemaps at CERN was this; I had the ISMAP action URL
start with "/img" and then followed by a virtual path to the map file
itself, such as /foo/bar.map.  Now, if my "document root" is in
/public/web I'd have a config file:

	Map   /img/*      /cgi-bin/htimage/*
	Exec  /cgi-bin/*  /usr/local/cgi-bin/*
	Pass  /*          /public/web/*

The 1st one expands /img to the image handler script, 2nd one executes
it, and 3rd will translate the rest relative to document root.  Use
this approach creatively and you'll cope.  Note that once this is
correctly set up you don't need to edit the config file anymore.

> Well, then: how 'bout being able to specify something like 
> 
> 	/cgi-bin/myscript/./file-in-this-dir
> 
> where `.' gets intrepreted relative to the invocation, rather than
> relative to the directory where the scripts live.

Same thing, /./ gets transformed into a single /

-- Cheers, Ari --




home help back first fref pref prev next nref lref last post