こんにちは。 ユーザディレクトリ内(/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 森原 ***************
Follow-Ups:
- [linux-users:92090] Re: チルダ付URLでCGI実行すると、Premature endエラー発生YOKOTA Yoshinori
- Prev by Subject: [linux-users:92075] Re: ImageMagickのインストール。
- Next by Subject: [linux-users:92077] Re: sndconfigで作成されるファイルとは
- Previous by thread: [linux-users:92097] Re: kernel-headersについて
- Next by thread: [linux-users:92090] Re: チルダ付URLでCGI実行すると、Premature endエラー発生
- Indexes:[Main][Thread]