From owner-freebsd-hackers Mon Jul 14 11:38:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA06839 for hackers-outgoing; Mon, 14 Jul 1997 11:38:18 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id LAA06834 for ; Mon, 14 Jul 1997 11:38:16 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA01726; Mon, 14 Jul 1997 11:30:15 -0700 From: Terry Lambert Message-Id: <199707141830.LAA01726@phaeton.artisoft.com> Subject: Re: help on cgi... To: joe@pavilion.net (Josef Karthauser) Date: Mon, 14 Jul 1997 11:30:15 -0700 (MST) Cc: muralir@george.rutgers.edu, freebsd-hackers@FreeBSD.ORG In-Reply-To: <19970714164256.29024@pavilion.net> from "Josef Karthauser" at Jul 14, 97 04:42:56 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Hi, > > I've installed apache as the http server on my machine running FreeBSD 2.2 > > release. I'm unable to get the cgi scripts to work even though I think > > I've set up the .conf files properly... ANy suggestions from guys who have > > done it for their machines? > > Make sure that you've got something like: > > This directory should be wherever the cgi-bin directory was installed. > AllowOverride None > Options ExecCGI FollowSymLinks > > > in your access.conf file. In your srm.conf file, you should also have: ScriptAlias /cgi-bin/ /data/httpd/cgi-bin Again, assuming this is where the cgi-bin directory was installed, and then you should reference your CGI's as:
In your documents. ...Assuming your CGI is named "foo" and you are using "post"; change to another name for another cgi (test-cgi is recommended, assuming you downloaded and built it) or "get" for the "get" method instead of the "post" method ("post" is recommended because it doesn't have the length limitations or URL exposure that "get" has). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.