From: dlb <sem...@wo...> - 2001-02-25 15:24:59
|
Ok, here's an interesting one.. I've been able to adapt the TCL wiki to TCLHTTPD by using TCLKitsh ( tclkit version of tclsh ) as the interpreter ( ie. launching tclhttpd from tclkitsh ) and running the Wikit via CGI. The only real problem that I've encountered is that there's a quirk in the way that the SCRIPT_NAME environmental variable is being generated a/o interpreted. The number of delimiters ,"/ " ,after cgi-bin in the script path are increasing - with each transaction with the wikit an extra forward slash is appended to cgi-bin/ . After a few posts I've got something that looks like this , ../cgi-bin////////wiki.cgi . Stripping these so that they don't affect the wiki's internal URL recognition isn't a problem , but I'm not sure of how to affect the base script_name var. A clue might lie in the fact that the script_name path reflects the URL of the referring link + 1 forwards slash between /cgi-gin/ and the cgi script. So if a transaction involves several CGI operations you might end up with /cgi-bin////wikit.cgi , while a simple post to the wiki results in /cgi-bin//wiki.cgi. Where is the $url of 'set env(SCRIPT_NAME) $url' within 'Cgi_SetEnvAll' (cgi.tcl)' coming in from ? Is this extracted from another environmental var ? I hadn't noticed this problem with other interps , so am assuming this has something to do with TCLKitsh . any ideas ? thanks David ps. once I get this running properly I'd like to look at adapting wikit to an application direct url. |