SUMMARY: cgi-bin

From: Carlos Sevillano (c_sevillano@hotmail.com)
Date: Mon Sep 07 1998 - 23:30:56 CDT


The issue was Apache 1.2's srm.conf file.
Thanks to Rik Schneider <rik@netasset.com>:

Verify that your srm.conf configuration includes the following:

          ScriptAlias /cgi-bin/ /path/to/cgi-bin/
          AddHandler cgi-script .cgi .pl

          If you dont enable the handler for cgi's the will be read to
          <STDOUT> as a
          standard text file.

          Rik Schneider
          Unix Systems Administrator

Original Question:
Sparc 20, Solaris 2.6, Apache 1.2, Netscape Communicator 4.05:

I have installed Apache (precompiled), the files under
/var/lib/httpd/cgi-bin/ are been displayed by Netscape as opposed to
executed as .cgi or.pl files. The files these permissions:

711 for /var/lib/httpd/cgi-bin/
755 for /var/lib/httpd/htdocs/
644 for /var/lib/httpd/htdocs/index.html (all files here are 644)

I am doing all the testing as root. When looking up the cgi files, I
get the sourcode. I seen this with .Z files under Netscape, Netscape
doesn't know the file type and opens it instead of downloading the
files. What is preventing the execution of the cgi files, the OS,
Apache, or Netscape?!

All documentation on the subject assumes that:
http://servername/cgi-bin/*.cgi, http://servername/cgi-bin/*.pl
are cgi scripts?! Any sugestions would be appreciated.

Carlos

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:48 CDT