You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michael Powe <mi...@trollope.org> on 2010/07/13 17:37:14 UTC

[users@httpd] 404 error with mod_jk

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@trollope.org		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

Re: [users@httpd] 404 error with mod_jk

Posted by Michael Powe <mi...@trollope.org>.
On Tue, Jul 13, 2010 at 11:39:45AM -0400, Eric Covener wrote:
> > <VirtualHost localhost>
> 
> Sure you're even hitting that virtualhost?

Hello,

Well ... no.  But I went back and added a CustomLog directive to that
vHost configuration section and it does log to the separate log file,
so that would seem to indicate that it is set up properly.

Thanks.

mp

-- 
Michael Powe		michael@trollope.org		Naugatuck CT USA
It could have been an organically based disturbance of the brain --
perhaps a tumor or a metabolic deficiency -- but after a thorough
neurological exam it was determined that Byron was simply a jerk.  
-- Jeff Jahnke, runner-up, Bulwer-Lytton contest

Re: [users@httpd] 404 error with mod_jk

Posted by Eric Covener <co...@gmail.com>.
> <VirtualHost localhost>

Sure you're even hitting that virtualhost?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org