Re: [htdig] $CGI in wrapper.html not correct

Aaron Turner (
Wed, 19 May 1999 15:09:43 -0700 (PDT)

Thanks for the clue. SCRIPT_NAME helped a lot!

On Wed, 19 May 1999, Gilles Detillieux wrote:

> According to Aaron Turner:
> > My site is using mod_perl to wrap the output of htsearch in a lot of
> > dynamic content. I've got the page working quite well. The only current
> > issue is that when htsearch expands the $CGI and the various $PAGE
> > variables.
> >
> > The mod_perl script is /modperl/search, but $CGI only expands to /modperl
> >
> > I've searched the documentation looking for something I could set to fix
> > it, but to no avail. I'd rather not have my mod_perl script re-write all
> > the URL's and fix them, but if that's what it takes...
> htsearch simply sets the CGI template variable to the value of the
> SCRIPT_NAME environment variable. I would guess that the missing
> "/search" bit is being stripped off by Apache before it calls modperl,
> so it's probably being set in PATH_INFO. You'd either need to change
> your wrapper.html, syntax.html & nomatch.html to append $(PATH_INFO)
> after $(CGI), or piece the path together in your perl script, and set
> the SCRIPT_NAME environment variable to what you want before calling
> htsearch.
> --
> Gilles R. Detillieux E-mail: <>
> Spinal Cord Research Centre WWW:
> Dept. Physiology, U. of Manitoba Phone: (204)789-3766
> Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930

To unsubscribe from the htdig mailing list, send a message to containing the single word "unsubscribe" in
the SUBJECT of the message.

This archive was generated by hypermail 2.0b3 on Wed May 19 1999 - 14:22:32 PDT