Apache/Tomcat disconnect
I had Apache and tomcat working together fine on a server I was configuring on my home network.
When I took the server to a co-location site to replace the server I had there I lost the connection. Apache can't find content via the worker. It must be a network configuration thing but where? |
What do the logs say?
|
From apache error log when trying to access a jsp on tomcat via apache:
[Sat Aug 23 16:04:29.120861 2014] [jk:warn] [pid 1256:tid 3070428928] No JkLogFile defined in httpd.conf. Using default /usr/local/apache2/logs/mod_jk.log [Sat Aug 23 16:04:29.124758 2014] [jk:warn] [pid 1256:tid 3070428928] No JkShmFile defined in httpd.conf. Using default /usr/local/apache2/logs/jk-runtime-status [Sat Aug 23 16:04:29.143353 2014] [jk:warn] [pid 1257:tid 3070428928] No JkLogFile defined in httpd.conf. Using default /usr/local/apache2/logs/mod_jk.log [Sat Aug 23 16:04:29.143729 2014] [jk:warn] [pid 1257:tid 3070428928] No JkShmFile defined in httpd.conf. Using default /usr/local/apache2/logs/jk-runtime-status [Sat Aug 23 16:04:29.151669 2014] [mpm_worker:notice] [pid 1257:tid 3070428928] AH00292: Apache/2.4.7 (Unix) mod_jk/1.2.40 configured -- resuming normal operations [Sat Aug 23 16:04:29.151722 2014] [core:notice] [pid 1257:tid 3070428928] AH00094: Command line: '/usr/local/apache2/bin/httpd' |
Code:
grep -i jk httpd.conf |
grep -i jk httpd.conf
LoadModule jk_module /usr/local/apache2/modules/mod_jk.so JkWorkersFile /usr/local/apache2/conf/workers.properties JkMount /mld/* worker1 JkMount /ngs worker1 JkMount /ngs/* worker1 JkMount /twilight worker1 JkMount /twilight/* worker1 |
Quote:
What apache and tomcat versions? |
Apache/2.4.7
apache-tomcat-7.0.50 No remote hosts/mounts, all local |
I turn mod_jk logging to debug. After trying to access a jsp from tomcat via apache I got this on the mod_jk log:
[Sun Aug 24 09:40:49 2014] [4052:3050306368] [debug] jk_translate::mod_jk.c (3623): missing uri map for reportscores.com:/twilight/index.jsp [Sun Aug 24 09:40:49 2014] [4052:3050306368] [debug] jk_map_to_storage::mod_jk.c (3791): missing uri map for reportscores.com:/twilight/index.jsp I have virtual hosts and set "JkMountCopy On" on httpd_conf html for the virtual hosts home page is coming thru |
Problem solved, I put the JKmounts in the virtual hosts
|
Glad it worked out.
|
All times are GMT -5. The time now is 08:16 AM. |