0

mod_jkまたはによって Tomcat に接続されている HTTP Apache サーバーがありますmod_proxy_http。これまでのところ、接続 byは正常にmod_proxy_http動作しますが、接続 bymod_jkではパスが見つからないというエラーが発生します。次に例を示します。

要求された URL /cm/login.ep は、このサーバーで見つかりませんでした。

Apache error_log の対応するエラーは次のとおりです。

[2014 年 5 月 24 日 22:19:47] [エラー] [クライアント 127.0.0.1] ファイルが存在しません: /Library/WebServer/Documents/cm

VirtualHost 定義は、httpd.conf では使用されません。

mod_jk.logエラーが表示されない場合、ワーカーはworkers.propertiesファイルから見つかります。ログには次のように記載されています。

[2014 年 5 月 23 日金曜日 17:19:25] [758:140735273992976] [info] init_jk::mod_jk.c (3383): mod_jk/1.2.40 初期化

mod_proxy_http と mod_jk の接続構成は次のとおりです。

mod_proxy_http設定は次のとおりです。

ProxyPass /webservices                ajp://localhost:8009/webservices
ProxyPass /engine                     ajp://localhost:8009/engine
ProxyPass /cmserver                   ajp://localhost:8009/cmserver
ProxyPass /searchserver               ajp://localhost:8009/searchserver
ProxyPass /dwr                        ajp://localhost:8009/dwr
ProxyPass /rss                        ajp://localhost:8009/rss
ProxyPass /rest                       ajp://localhost:8009/rest
ProxyPass /pr                         ajp://localhost:8009/pr
ProxyPass /template-resources         ajp://localhost:8009/template-resources
ProxyPassMatch (/.*\.ep)              ajp://localhost:8009/$1
ProxyPassMatch ^(/.*\.image)          ajp://localhost:8009/$i
ProxyPassMatch /assets                ajp://localhost:8009/assets
ProxyPassMatch ^(/.*_d_.*\.html)      ajp://localhost:8009/$1
ProxyPassMatch ^(/.*_prod_.*\.html)   ajp://localhost:8009/$1
ProxyPassMatch ^(/.*\.json)           ajp://localhost:8009/$1

mod_jk設定は次のとおりです。

JkMount  /webservices/*       a6
JkMount  /engine              a6
JkMount  /cmserver/*          a6
JkMount  /searchserver/*      a6
JkMount  /dwr/*               a6
JkMount  /rss                 a6
JkMount  /rest/*              a6
JkMount  /pr                  a6
JkMount  /template-resources* a6
JkMount  /*.ep                a6
JkMount  /*.image             a6
JkMount  /assets/*            a6
JkMount  /*_d_*.html          a6
JkMount  /*_prod_*.html       a6
JkMount  /*_attr_*.html       a6
JkMount  /*_pkg_*.html        a6
JkMount  /*_ptd_*.html        a6
JkMount  /*_ptattr_*.html     a6
JkMount  /*_ptpkg_*.html      a6
JkMount  /*_static_*.html     a6
JkMount  /*_attr_*.html       a6
JkMount  /*.json              a6
JkMount  /order/*             a6

そして、次のworkers.propertiesとおりです。

worker.list=status,a6
# Worker for a6 webapps
worker.a6.port=8009
worker.a6.host=localhost
worker.a6.type=ajp13

# Status worker for managing load balancer
worker.status.type=status
4

0 に答える 0