From owner-freebsd-questions Sun Feb 2 16:55:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA26678 for questions-outgoing; Sun, 2 Feb 1997 16:55:43 -0800 (PST) Received: from cedb.dpcsys.com (CEDB.DPCSYS.com [207.124.154.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA26673 for ; Sun, 2 Feb 1997 16:55:40 -0800 (PST) Received: from localhost (dan@localhost) by cedb.dpcsys.com (8.8.2/8.8.2) with SMTP id AAA06203; Mon, 3 Feb 1997 00:40:57 GMT Date: Sun, 2 Feb 1997 16:40:55 -0800 (PST) From: Dan Busarow To: Robert Chalmers cc: bsd Subject: Re: apache and cgi's In-Reply-To: <199702020246.MAA00628@nanguo.chalmers.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 2 Feb 1997, Robert Chalmers wrote: > ------------------the program > #! /bin/sh -x > # > # %W% (Berkeley) %E% > # echo "Content-type: text/html" echo "" > cd /usr/games/lib/ching.d > PATH=.:$PATH > ---------------- the output on apache. > + PATH=.:/sbin:/bin:/usr/sbin:/usr/bin > + test > + cno > + echo > [Sun Feb 2 12:39:00 1997] access to /usr/local/etc/httpd/cgi-bin/ching failed for carbon.chalmers.com.au, reason: malformed header from script. Bad header= ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Add the two echo commands above to generate good headers. Dan -- Dan Busarow 714 443 4172 DPC Systems / Beach.Net dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82