Re: htdig: Need to change CGI root


Aaron D. Turner (aturner@best.com)
Tue, 3 Mar 1998 23:20:06 -0800 (PST)


-----BEGIN PGP SIGNED MESSAGE-----

Well I played with it some more, taking in your advice and I'm getting
closer. I've got the form action path correctly set :

/~aturner/htdig/htsearch.cgi

by forcing the issue, but $(CGI) is still reporting :

/htdig/htsearch.cgi

which means that the next page buttons on the bottom have a bogus URL.
Since I have no control over the web server (I'm running this at my ISP)
I'm basiclly SOL on getting the enviroment variable set correctly (if this
is indeed the problem).

So I could really use someone's help in helping this perl programmer who
doesn't know more than 5 lines of C++ how to hack the source to force the
path... That or I guess I could write a CGI pre-processor but that just
sounds like a real ugly hack.

Thanks!

On Mon, 2 Mar 1998, Andrew Scherpbier wrote:

> Aaron D. Turner wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> >
> > I've compiled and done everything to get ht:dig up and running. At first
> > everything looked kosher, and then i found a little nasty- after the first
> > search, the web form has a lot of incorrect paths to the htsearch CGI
> > program. It makes the path /htdig/htsearch for the FORM ACTION and the
> > links to the next pages' worth of hits (after the 1st 10). I need the
> > path to be:
> >
> > /~aturner/htdig/htsearch.cgi
> >
> > (Yes it *must* end in .cgi)
> >
> > What can I do to get this working?
> >
> > Thanks!
>
> I see two ways to fix this. The simplest will be to change the HTML that
> contains the form. Look at the default common/header.html. It declares the
> form, so you can change the action to anything you want.
> The second and possably harder thing is to find out why your webserver is not
> setting the SCRIPT_NAME environment variable correctly. This env variable is
> made available in the header.html file as ${CGI}.
>
> I hope this helps.
> --
> Andrew Scherpbier <andrew@contigo.com>
> Contigo Software <http://www.contigo.com/>
> ----------------------------------------------------------------------
> To unsubscribe from the htdig mailing list, send a message to
> htdig-request@sdsu.edu containing the single word "unsubscribe" in
> the body of the message.
>

- -----
Aaron Turner, CNE | Either which way, one half dozen or another.
aturner@pobox.com | Check out the RedHat Linux User's FAQ Online!
www.pobox.com/~aturner | http://www.pobox.com/~aturner/RedHat-FAQ/
All emails from this account are PGP signed. Lack of a signature is "bad".
PGP Key fingerprint = FB E1 CE ED 57 E4 AB 80 59 6E 60 BF 45 1B 20 E8

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNP0AqDM3jpXy1kJtAQEafQQAjlOflEftFH0hQ0Ze4oURIT81U8jMOcZk
+m0EH7EIa0KyrtogjCAOsSa0VqTZtvyw/DE5HwhOzJos0fAc2BTGSErwVHJW2ahY
WEuV6fuolCgaqYO2zsxSTpnL8zLfmFrSN1VbNRAmyOkSNHeZHYx2o2hxXxzb7huL
LXgyfWazf84=
=DYXs
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:25:49 PST