404 error with mod_jk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have installed mod_jk (current version built locally) in IBM httpd
(IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
localhost Port 80).

I used the autoconfig option in tomcat to build the mod_jk.conf file
and added an include for it to httpd.conf.

I'm trying to configure this to work with virtual host in Apache.

Include /usr/share/tomcat6/conf/auto/mod_jk.conf

Contents of this file:

<IfModule !mod_jk.c>
  LoadModule jk_module "/opt/IBMIHS/modules/mod_jk.so"
</IfModule>

<VirtualHost localhost>
    ServerName localhost

    JkMount /manager ajp13
    JkMount /manager/* ajp13

    JkMount /helloworld ajp13
    JkMount /helloworld/* ajp13

    JkMount /docs ajp13
    JkMount /docs/* ajp13

    JkMount /host-manager ajp13
    JkMount /host-manager/* ajp13

    JkMount /TlTaggerTest ajp13
    JkMount /TlTaggerTest/* ajp13
</VirtualHost>

Access log entries:

::1 - - [13/Jul/2010:11:18:03 -0400] GET /TlTaggerTest/target.jsp  404
332 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3)
Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3" "-"
::1 - - [13/Jul/2010:11:18:57 -0400] GET /TlTaggerTest/target.jsp  404
332 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3)
Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3"
"JSESSIONID=CD3138FAB2C9059650B395B15B8BA3EA"
::1 - - [13/Jul/2010:11:19:04 -0400] GET /TlTaggerTest/  404 322 "-"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423
Ubuntu/10.04 (lucid) Firefox/3.6.3"
"JSESSIONID=CD3138FAB2C9059650B395B15B8BA3EA"

If I go to the page http://localhost:8080/TlTaggerTest/target.jsp, the
page displays.  Only if I go through port 80, the 404 is generated in
Apache.

mod_jk.log entries:

[Tue Jul 13 11:19:04 2010] [3321:62798704] [debug]
map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map
URI '/TlTaggerTest/' from 10 maps
[Tue Jul 13 11:19:04 2010] [3321:62798704] [trace]
find_match::jk_uri_worker_map.c (839): enter
[Tue Jul 13 11:19:04 2010] [3321:62798704] [debug]
find_match::jk_uri_worker_map.c (850): Attempting to map context URI
'/host-manager/*=ajp13' source 'JkMount'
[Tue Jul 13 11:19:04 2010] [3321:62798704] [debug]
find_match::jk_uri_worker_map.c (850): Attempting to map context URI
'/TlTaggerTest/*=ajp13' source 'JkMount'
[Tue Jul 13 11:19:04 2010] [3321:62798704] [debug]
find_match::jk_uri_worker_map.c (863): Found a wildchar match
'/TlTaggerTest/*=ajp13'
[Tue Jul 13 11:19:04 2010] [3321:62798704] [trace]
find_match::jk_uri_worker_map.c (866): exit
[Tue Jul 13 11:19:04 2010] [3321:62798704] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit

Thus, it appears to me that mod_jk is doing is job, and yet the "page
not found" error is generated.  Yet, tomcat finds the page if I go
through port 8080. I followed first the instructions for "quick start"
in the tomcat docs and then followed up with other accounts of setting
this up.

Also, FWIW, if I go to the page via port 8080, then afterward the
jsessionid shows up in the apache log, even though I'm going through
port 80.

Additionally, I may add that I used ProxyPass first to connect the two
servers and that did work.  But, I need mod_jk so that Apache will
handle the requests rather than just forward them.

Any help in troubleshooting and resolving this would be much
appreciated. I need to have this working in order to test a new Apache
module (which is what I'm _really_ supposed to be working on!)

Thanks.

mp

-- 
Michael Powe		michael@xxxxxxxxxxxx		Naugatuck CT USA
"After I asked him what he meant, he replied that freedom consisted of
the unimpeded right to get rich, to use his ability, no matter what the
cost to others, to win advancement." -- Norman Thomas

Attachment: pgpR20ZRCRYxg.pgp
Description: PGP signature


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux