http://homepage1.nifty.com/arima/ruby/index.htm
にあるruby1.6.4を使って、以下のcgiスクリプトを実行すると
うまくいくのですが、
----------- cgiスクリプト -----------
#!/ruby/bin/ruby -Ks
print "Content-type: text/html\n\n";
print <<EOT;
hello world
EOT
-------------------------------------
http://www.ruby-lang.org/~eban/ruby/binaries/cygwin/
にある、ruby1.6.6にかえてみると、エラーになります。
これはなぜでしょうか?
---------- 新しいcgiスクリプト ----------
#!/home/bin/cygwin/usr/local/bin/ruby -Ks
print "Content-type: text/html\n\n";
print <<EOT;
hello world
EOT
-----------------------------------------
---------- Apacheのエラーログ -----------
[Wed Jul 31 00:01:41 2002] [error] [client 127.0.0.1]
Premature end of script headers:
c:/home/public_html/cgi-bin/test.cgi
-----------------------------------------
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/