Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2002 09:34:29 +0300
From:      "Artyom V. Viklenko" <artem@mipk-kspu.kharkov.ua>
To:        itchibahn <freebsd@isot.com>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Premature end of script headers
Message-ID:  <3D4784F5.7030705@mipk-kspu.kharkov.ua>
References:  <1028087022.3d475ceec6770@webmail.isot.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 From my httpd.conf for one of virtual hosts:

<Directory "/user/www/cgi-bin/web1">
   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
</Directory>

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:
> 
> <VirtualHost support.isot.com>
> ...
> ...
> ScriptAlias /cgi-bin/ "/home/support/cgi-bin/"       
> <Directory "/home/support/cgi-bin">
>         AllowOverride Limit Indexes Options
>         Options +ExecCGI +Includes
>         Order allow,deny
>         Allow from all
> </Directory>
> ...
> ...
> 
> 
> 
> 
> -------------------------------------------------
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D4784F5.7030705>