tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <>
Subject RE: About mod_jk.
Date Thu, 01 Aug 2002 12:09:04 GMT

Well, as Ralph already said, if HAVE_SSL is false, your JkMount directives
will not be included and apache will just spit out a JSP page as text/html.

If you have the two Listener directives in server.xml as you posted, you
don't need to put any mod_jk statements whatsoever in httpd.conf.  With
those two Listener directives, all you have to put in httpd.conf is a line
that says:

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

Obviously, you will have to make sure your Context elements in server.xml
make sense, and match what apache is expecting.  Things I would check are
whether ServerName in httpd.conf matches Host name="" in server.xml, and
whether you have a file with the same hostname as
ServerName and the Host name="" parameter.

The apache logs should tell you exactly (or nearly so) what's happening...if
you are getting a 200 in the logs for the URL in question, that means that
apache isn't even trying to send things to tomcat.

John Turner

-----Original Message-----
From: Tony Mak []
Sent: Thursday, August 01, 2002 6:24 AM
Subject: About mod_jk.

Hi ya,

I am working on mod_jk. After I set the setting, the jsp page take no effect
(The bowser just shows all jsp codes). The setting is as follows,

In server.xml,

<Server port="8005" shutdown="SHUTDOWN" debug="0">
     <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" />

<Host name="localhost" debug="0" appbase="webapps" >
      <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
          append="true" />

In httpd.conf,

LoadModule    jk_module  modules/
<IfDefine HAVE_SSL>

AddModule mod_jk.c
JkWorkersFile /etc/httpd/conf/
JkLogFile     /etc/httpd/logs/mod_jk.log
JkLogLevel    debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

Redhat 7.3, Apache 1.3.23-9(bundle with RH), Tomcat4.0.3(RPM)


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

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

View raw message