由 etarip 在 04-12-2004 18:46 发表:
一个关于Apache的弱智问题,请大家帮帮忙
我在/var/www/cgi-bin/ 下放了一个first.cgi文件:
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "Hello, World.";
httpd.conf里的 AddHandler cgi-script *cgi前#已经去掉,
但在浏览器输入 http://****/cgi-bin/first.cgi
之后总出现以下错误:
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: first.cgi
If you think this is a server error, please contact the webmaster
Error 500
我是个初学者,请大家多多指教
由 geekjim 在 04-12-2004 18:51 发表:
看看apache的error log
由 etarip 在 04-12-2004 19:00 发表:
我刚看了apache的error log,没什么实际信息 
[Mon Apr 12 18:38:27 2004] [error] [client 162.105.17.141] Premature end of script headers: first.cgi
[Mon Apr 12 18:38:36 2004] [error] [client 162.105.17.141] Premature end of script headers: first.pl
[Mon Apr 12 18: