[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

[linux-users:92076] チルダ付URLでCGI実行すると、Premature endエラー発生


こんにちは。

ユーザディレクトリ内(/home/aa/public_html/)のCGIを実行時、URLにチルダをつけると
IntenalServerErrorが発生します。
	Apacheエラーログの内容: Premature end of scripts headers:

http://test.com/~aa/test.cgi で実行すると上記エラー発生。
http://test.com/aa/test.cgi  では実行OK。

 1) test.cgiの内容
		#!/usr/bin/perl
		print "Content-type: text/html\n\n";
		print "<html> <body>hello\n";
		print " </body> </html>";

 2) httpd.confでAliasを設定しています。
	Alias /aa/ /home/aa/public_html/
 3) システム環境
	OS: Redhat 7.1
	Apache:	1.3.22
 4) public_html(711),test.cgi(755)に設定済み

 5)  過去ログlinux-users:71130] Re: user用の CGIの設定	に同じ内容があり
	試しましたが、結果を同じでした。
	過去ログの概要:
	  apache を起動時のログで "suEXEC mechanism enabled" が表示されていれば
		find ~/public_html -type d -perm +022 -exec chmod go-w \{\} \;
		find ~/public_html -type f -perm +033 -exec chmod go-wx \{\} \;
	  を実行する。
  6)  ApacheFAQを参照しHTTP ヘッダを送信する print にバッファフラッシュを
   いれてみましたが同じでした。てください
	http://japache.infoscience.co.jp/japanese_1_3/manual/misc/FAQ.html#premature-script-headers

以上、いろいろ試しましたが、対策できませんでした。
どなたか、教えてください。宜しくお願いします。





***************
Forest-Networks
           森原
***************

この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
Follow-Ups: