On Wed, May 31, 2006 at 06:10:13AM +0200, Marcus Glocker wrote:

> Hello prad,
> 
> Of course if you run a webserver chrooted you have to care that all
> library and stuff a program (in that case a CGI) needs, are
> accessibly withing the chrooted environment.  But you already got
> that tip.
> 
> The error message you get "Premature end of script headers" means
> that the HTTP header generated by your CGI is not correct.  You need
> at least to tell the webserver what content type your CGI generates
> before sending any further data.  For example in a sh script:
> 
> #!/bin/sh
> 
> echo "Content-Type: text/html"
> echo ""
> echo "I'm sorry Dave, I'm afraid I can't do that."

Oh, for that example "Content-Type: text/plain" would be correct :)

-- 
Marcus Glocker, [EMAIL PROTECTED], http://www.nazgul.ch -----------------

Reply via email to