httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BAO RuiXian <bao.ruix...@atbusiness.com>
Subject Re: [users@httpd] CGI problem
Date Fri, 07 Feb 2003 23:49:59 GMT
Hello,

Bob Bomar wrote:
> 
> I am running Apache 1.3.27 on a FreeBSD 4.7 Server. When I go to=20
> /cgi-bin/ from the web, I get a 500 error.  When I run the script
> from the command line, it works fine, with the header and all.

Do you have "Content-type: text/html" as your first output line when you
run it successfully from the command line? Otherwise, it can also cause
the exact following error "Premature end of script headers".

Bao

Best

> I checked my logs and I see this:
> 
> [Thu Feb  6 21:02:07 2003] [error] [client 192.168.1.13] Premature end of s=
> cript headers: /dir/to/script/cvsweb.cgi
> [Thu Feb  6 21:02:43 2003] [error] [client 192.168.1.13] Premature end of s=
> cript headers: /dir/to/script/cvsweb.cgi
> [Thu Feb  6 21:02:45 2003] [error] [client 192.168.1.13] Premature end of s=
> cript headers: /dir/to/script/cvsweb.cgi
> 
> here is the relevent portion of the httpd.conf:
> 
> <VirtualHost *>
> ServerAdmin bob@bomar.us
> DocumentRoot /usr/local/www/bob
> ServerName bob.bomar.us
> ErrorLog /var/log/bob-error
> CustomLog /var/log/bob-custom common
> ScriptAlias /cgi-bin/ "/usr/local/www/bob/cgi-bin/"
> #AddHandler cgi-script .cgi
> #AddHandler cgi-script .pl
> </VirtualHost>
> 
> --
> /----------------------------------------------------------------\
> | Bob Bomar     bulldog@fxp.org         http://www.bomar.us/~bob |
> |================================================================|
> | FreeBSD: The Power to Serve.          http://www.freeBSD.org   |
> \----------------------------------------------------------------/

-- 
BAO RuiXian,  SOFTWARE ENGINEER,   Project Consulting,  Software
Services
AtBusiness Communications Corporation, Kaapeliaukio 1, FIN-00180
Helsinki
Telephone +358-9-2311 6674, Mobile +358-50-329 6275, Fax +358-9-2311
6601
Web: www.atbusiness.com, Email: {bao.ruixian,
ruixian.bao}@atbusiness.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message