No.17991 投稿時間:2004年12月25日(Sat) 13:16 投稿者名:初心者です URL:
小生、Fedora Core3を使用して自宅サーバーを構築しておりますが、CGIの設定で行き詰っており、どなたかお教えいただければ幸いです。
ちなみに、test.cgiというスクリプトを作成し、動かしたところ
[error] [client 192.168.x.xx] Premature end of script headers : test.cgi
"GET /test.cgi HTTP/1.1" 500 615
というエラーがログに記載されています。
web上では
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@mydomain.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
と出力されます。
パーミッションは755に変更し、httpd.conf 内もこちらに記載とおり、設定を行いましたが、原因がつかめません。
何かお気づきの方がいらっしゃいましたらお教え下さい。
よろしくお願いいたします。
No.17992 投稿時間:2004年12月25日(Sat) 13:27 投稿者名:Reboot URL:
> 小生、Fedora Core3を使用して自宅サーバーを構築しておりますが、CGIの設定で行き詰っており、どなたかお教えいただければ幸いです。
> ちなみに、test.cgiというスクリプトを作成し、動かしたところ
> [error] [client 192.168.x.xx] Premature end of script headers : test.cgi
> "GET /test.cgi HTTP/1.1" 500 615
> というエラーがログに記載されています。
> web上では
> Internal Server Error
> The server encountered an internal error or misconfiguration and was unable to complete your request.
>
> Please contact the server administrator, root@mydomain.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
>
> More information about this error may be available in the server error log.
>
> と出力されます。
> パーミッションは755に変更し、httpd.conf 内もこちらに記載とおり、設定を行いましたが、原因がつかめません。
> 何かお気づきの方がいらっしゃいましたらお教え下さい。
> よろしくお願いいたします。
あるサイトに下記のような説明がありました。
Premature end of script headers エラー
ログにPremature end of script headers(ヘッダーがない) と出る場合は、 Content-type: text/html\n\nを出力していない場合が考えられます。出力するコンテントタイプに従ったヘッダを正しく 出力して下さい。
または、文法エラー等で、ヘッダがおかしくなっていまった場合にも生じます。
Premature end of script headers で検索してみましたか、情報は山のように得られますよ。(^^;)