LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache/Tomcat disconnect (https://www.linuxquestions.org/questions/linux-server-73/apache-tomcat-disconnect-4175516084/)

seamore 08-23-2014 05:07 PM

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?

Habitual 08-23-2014 05:53 PM

What do the logs say?

seamore 08-23-2014 06:08 PM

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'

Habitual 08-23-2014 08:01 PM

Code:

grep -i jk httpd.conf
says what?

seamore 08-23-2014 08:24 PM

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

Habitual 08-24-2014 08:27 AM

Quote:

Originally Posted by seamore (Post 5226116)
Code:

JkMount /mld/* worker1
JkMount /ngs worker1
JkMount /ngs/* worker1
JkMount /twilight worker1
JkMount /twilight/* worker1


any of these remote hosts/mounts?

What apache and tomcat versions?

seamore 08-24-2014 09:28 AM

Apache/2.4.7

apache-tomcat-7.0.50

No remote hosts/mounts, all local

seamore 08-24-2014 11:50 AM

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

seamore 08-24-2014 01:10 PM

Problem solved, I put the JKmounts in the virtual hosts

Habitual 08-24-2014 08:04 PM

Glad it worked out.


All times are GMT -5. The time now is 08:16 AM.