You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@dsndata.com> on 1995/10/13 10:25:00 UTC

From c.i.w.s.u (Redirect cgi (perl) scripts using Apache 0.8.14)

No ack sent:

From: wcpr@pismo.mbari.org (wm paul rogers)
   Newsgroups: comp.infosystems.www.servers.unix
   Date: 6 Oct 1995 23:40:28 GMT
   Organization: mbari
   Keywords: apache redirect

   I run a research organization's web site and want to distribute some of the perl scripting load to other machine's within our company.  I've tried the following in srm.conf:
           Redirect /perl/tsunami/ http://tsunami.ip.addr/perl/
           Redirect /perl/reef/ http://reef.ip.addr/perl/

   Within HTML docs, I reference the redirect with something like
           <IMG SRC="/perl/tsunami/createGif.pl">
   where createGif.pl is a perl script to build an image based on data most easily munched by machine tsunami.  This works fine, but if I pass CGI vars such as
           <IMG SRC="/perl/tsunami/createGif.pl?var=somevalue">
   the receiving server (here tsunami) never sees var or its value.  The access log on the primary server reports
           "GET /perl/tsunami/creageGif.pl?var=somevalue HTTP/1.0" 302 -
   whereas the redirected server reports
           "GET /perl/tsunami/creageGif.pl HTTP/1.0" 500 -
   the error (500) due to the absence of the variable var.

   The Apache documentation (patch E25) leads me to believe the CGI vars are made available to the redirected script.  What am I doing wrong?

   -wcpr-
   ----------------------------------------------------------------------
                            Monterey Bay Aquarium Research Institute
    Wm Paul Rogers   |   160 Central Avenue        |  Ph. (408) 647-3762
    wcpr@mbari.org   |   Pacific Grove, CA  93950  |  FAX (408) 649-8587
   ----------------------------------------------------------------------