0

I have the HTTP Apache server that is connected to Tomcat either by mod_jk or mod_proxy_http. So far, the connection by mod_proxy_http works fine but the connection by mod_jk results in the not finding the path error, for example:

The requested URL /cm/login.ep was not found on this server.

The corresponding error in the apache error_log is:

[Sat May 24 22:19:47 2014] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/cm

The VirtualHost definition is not used in httpd.conf.

mod_jk.log does not show any errors, the worker is found from the workers.properties file. The log says:

[Fri May 23 17:19:25 2014] [758:140735273992976] [info] init_jk::mod_jk.c (3383): mod_jk/1.2.40 initialized

The connection configurations for mod_proxy_http and mod_jk are below:

Here are the mod_proxy_http settings:

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

Here are the mod_jk settings:

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

And the workers.properties are:

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
Alex
  • 7,007
  • 18
  • 69
  • 114
  • Check the answer I just tagged as a this being a duplicate of. Are you using Apache virtual hosts? Are your `Mod_jk` settings within the configuration of the virtual host you are trying to connect to? – Giacomo1968 May 25 '14 at 22:30
  • I checked the existence of Virtual Host by the following command: /usr/java/ep622/smartdestinations-sf => httpd -S VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: _default_:443 www.example.com (/private/etc/apache2/extra/httpd-ssl.conf:74) Syntax OK. What should I do next? – Alex May 26 '14 at 01:37
  • What is the full path & filename for the file that has the `mod_jk` settings as well as `mod_proxy_http` settings? – Giacomo1968 May 26 '14 at 02:43
  • I use for both configurations httpd.conf in the /private/etc/apache2 directory – Alex May 26 '14 at 15:22

0 Answers0