2004年11月30日(火)

jsp/servlet 実行環境構築メモ

apache (web server) インストール。
httpd.conf 設定。 起動して port 80 を確認。
tomcat (servlet container) インストール。
起動して port 8180 を確認。
mod_jk2 (apache から tomcat へ連携) インストール。
apache2/httpd.conf に以下を追加。 /usr/local/etc/apache2/workers2.properties を作成。 (archive 中には存在しているようだが、 ports なのになぜこのファイルを作らない?) http://localhost/examples/ が /usr/local/jakarta-tomcat4.1/webapps/examples になっていることを確認。
mod_jk2 用 httpd.conf 追加部分
LoadModule jk2_module libexec/apache2/mod_jk2.so
<IfModule mod_jk2.c>
  JkSet config.file /usr/local/etc/apache2/workers2.properties
</IfModule>
mod_jk2 用 /usr/local/etc/apache2/workers2.properties 。
[logger]
level=ERROR

[shm:]
file=/var/run/jk2.shm
size=1000000

[channel.socket:localhost:8009]
tomcatId=localhost:8009

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:/examples/*]

[referer:

Script Error

The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with .cgidextension, or add a AddHandler cgi-script-debug .cgiline to your .htaccess file.

]

Apache2 Tomcat4.1 mod_jk2
Excerpt: WWWで調べたら、旧バージョンとかと色々と混ざっていてわかりに 
Weblog:
Tracked: 2005年04月25日 15:36
あわせて読みたい