- 締切済み
Win2000でApacheとTomcat連携
http://member.nifty.ne.jp/Y-Yamada/srv/kankyou/ 上のサイトを参考にJSP/サーブレットでWindows環境の設定をしました。1つ設定で異なる部分はApache2.0.47です。 ●Apache2フォルダに含まれているhttpd.confの内容を変更 228行> DocumentRoot "C:/sample" C:ドライブ直下にsampleフォルダを置きそれを公開フォルダに設定しました。 ●http://127.0.0.1 を実行 indexページは現在文字化けをしている状況ですが表示はされます。 ●http://127.0.0.1/My.jsp を実行 indexページからJSPページに移動実行すると、ファイルのダウンロードのダイアラログがでてきてしまいます。 参考URLに『workerを設定する』がありますが、このファイルの表記されている内容がさっぱりわかりません。 [status:] [uri:/jkstatus/*] group=status: [shm:] disabled=1 [channel.socket:] [ajp13:] [uri:/examples/*] ←ここの設定が気になるのですが・・・ アドバイス宜しくお願いします。
- みんなの回答 (3)
- 専門家の回答
みんなの回答
- persona
- ベストアンサー率57% (4/7)
回答No.3
- northcurlcurl
- ベストアンサー率50% (17/34)
回答No.2
- northcurlcurl
- ベストアンサー率50% (17/34)
回答No.1
補足
回答が遅れてすみません。 Apacheの環境がApache2.0.47だとFLASH等が表示されなく文字化けも発生している状況だったので、バージョンをApache 1.3.27に変更いたしました。 Apache Group/Apache/modulesに『mod_jk-1.3.27.dll』ファイルを置き、 Apache Group/Apache/confに『workers2.properties』ファイルを置きました。 northcurlcurlさんのアドバイスどおり workers2.propertiesファイルの内容は [status:] [uri:/jkstatus/*] group=status: [shm:] disabled=1 [channel.socket:] [ajp13:] [uri:/*] [uri:/*/*] と変更しました。 Apache Group/Apache/conf/httpd.confファイルの内容の 最後尾に LoadModule jk_module modules/mod_jk-1.3.27.dll JkWorkersFile "C:\Program Files\Apache Group\Apache\conf\workers2.properties" JkMount /*.jsp ajp13 JkMount /*/* ajp13 を追加しました。 でTomcat→Apacheの順に起動し、 Apacheの起動画面には Apache/1.3.27(win32) mod_jk/1.2.2-beta-1 running… と表示されています。 ブラウザにhttp://127.0.0.1でindexページは表示されますが、http://127.0.0.1/My.jspを実行すると画面に Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, null 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. -------------------------------------------------- Apache/1.3.27 Server at freema.hn.org Port 80 というようなエラーになりました。これはどういったエラーなのでしょうか?またお知恵をお貸しください。