tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <>
Subject RE: Url Mapping with mod_jk
Date Fri, 06 Sep 2002 16:19:15 GMT

Actually, posting your mod_jk.conf file would be of more help...that's where
the JkMount directives that aren't working should be.

You have the Listener elements (*.ApacheConfig) in your server.xml.  There's
no need to have anything in httpd.conf except:

Include /some/path/to/tomcat/conf/auto/mod_jk.conf

The other thing I would change is to add forwardAll="false" to your Listener
directives...the default is true, and as far as I know, unless you
explicitly state "false", all requests for that URL will go to Tomcat,
making Apache (and mod_jk) redundant.  You want only dynamic requests (*.jsp
and servlet/*) to go to Tomcat.

A working mod_jk.conf file is here:

That file was generated by Tomcat, I didn't do anything to it except sub in
"" for my actual hostname.  


> -----Original Message-----
> From: Anthony Milbourne []
> Sent: Friday, September 06, 2002 12:10 PM
> To: 'Tomcat Users List'
> Subject: RE: Url Mapping with mod_jk
> Hi
> Thanks for that help - I now realise more about how the 
> server.xml works.
> I have done what you said and my webapp now appears in the 
> root url when I
> connect direct to Tomcat (which is great).  Unfortunately 
> when I connect via
> Apache I get back the JSP source, as if it has not gone 
> through Tomcat.  I
> have played around a bit and can't figure out what is going on.  
> Could you (or anyone) take a look at the config snippets 
> below and see if
> you can spot the problem.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message