4月 7th, 2008at 12:13

Tags:

Apache2.0.55のworkers2.properties

このエントリーをはてなブックマークに追加

Apache/ApacheとTomcatの連動で必要となる「mod_jk2」の設定ファイル。mod_jk2をダウンロードすると、confフォルダにサンプルが入っている。

サンプル

#共有メモリの定義[shm]info=Scoreboard. Requried for reconfiguration and status with multiprocess servers.file=anon

# Defines a load balancer named lb. Use even if you only have one machine.[lb:lb]

# JK2が通信するためのポートを指定[channel.socket:localhost:8009]port=8009host=127.0.0.1

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

# Tomcatのコンテキストの割り当て[uri:/examples/*]group=lb

#JK2の状態確認用ステータスワーカ(本番では削除したほうがいい)[status:]info=Status worker, displays runtime information

[uri:/jkstatus/*]info=The Tomcat /jkstatus handlergroup=status:

ログの設定

jk2のログを設定可能

# workers2.properties# mod_jk2 のログ設定[logger.file:0]level=ERRORfile=${serverRoot}/logs/mod_jk2.log
このエントリーをはてなブックマークに追加