From owner-freebsd-isp Tue Jul 30 23:35:40 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27DA337B400 for ; Tue, 30 Jul 2002 23:35:36 -0700 (PDT) Received: from mail.mipk-kspu.kharkov.ua (flash.mipk-kspu.kharkov.ua [194.44.157.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 202D243E3B for ; Tue, 30 Jul 2002 23:35:31 -0700 (PDT) (envelope-from artem@mipk-kspu.kharkov.ua) Received: from mipk-kspu.kharkov.ua (rainbow.mipk-kspu.kharkov.ua [192.168.9.241]) by mail.mipk-kspu.kharkov.ua (8.12.3/8.11.1) with ESMTP id g6V6YLb0020534; Wed, 31 Jul 2002 09:34:22 +0300 (EEST) (envelope-from artem@mipk-kspu.kharkov.ua) Message-ID: <3D4784F5.7030705@mipk-kspu.kharkov.ua> Date: Wed, 31 Jul 2002 09:34:29 +0300 From: "Artyom V. Viklenko" Organization: IIAT NTU "KhPI" User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 (CK-FreeNet) X-Accept-Language: ru,uk,en MIME-Version: 1.0 To: itchibahn Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Premature end of script headers References: <1028087022.3d475ceec6770@webmail.isot.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org From my httpd.conf for one of virtual hosts: AllowOverride None Options None Order allow,deny Allow from all First of all scrimp must output "Content-Type" header. For example, from shell script: #!/bin/sh echo "Content-Type: text/html" echo date "+%d.%m.%Y" exit $? itchibahn wrote: > Help. Trying out the test-cgi, and it works under main host, but under a > virtual host, I get "Premature end of script headers: /home/support/cgi- > bin/test-cgi" error message in log file. > > The following is my httpd.conf for that virutal: > > > ... > ... > ScriptAlias /cgi-bin/ "/home/support/cgi-bin/" > > AllowOverride Limit Indexes Options > Options +ExecCGI +Includes > Order allow,deny > Allow from all > > ... > ... > > > > > ------------------------------------------------- > This mail sent through ISOT. To find out more > about ISOT, visit http://isot.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > -- Sincerely yours, Artyom V. Viklenko. ====================================================== System Administrator artem@mipk-kspu.kharkov.ua ------------------------------------------------------ IIAT NTU "KhPI" 21, Frunze Str., Kharkov Ukraine 61002 Phone: +380 (572) 400026 Fax: +380 (572) 474062 ====================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message