tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tore Skogly <>
Subject Tomcat, mod_jk and Apache...again!
Date Fri, 10 May 2002 18:17:17 GMT
I'll give it another try, and hope someone can help me in sorting this problem 

Due to access restrictions my jsp files are located with my static pages under 
the /var/www/html directory. I will use Apache 1.3.23 to serv my static 
As I will not be deploying any webapps - only a few jsp pages - i would prefer 
to use mod_jk instead of mod_webapp.

When I browse jsp pages located in /var/www/html they are displayed as pure 
text pages and not as html....

Please anyone - I have struggeled with this for several days - can anyone 

This is what I have added in my httpd.conf file:

LoadModule jk_module modules/
AddModule mod_jk.c

Include /var/tomcat4/conf/auto/mod_jk.conf

# Configure mod_jk
JkWorkersFile /var/tomcat4/conf/
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info

JkMount /*.jsp ajp13


This is my server.xml file:
<Server port="8005" shutdown="SHUTDOWN" debug="0">

	<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" 

  <!-- Define the Tomcat Stand-Alone Service -->
  <Service name="Tomcat-Apache">

    <!-- Define a non-SSL HTTP/1.1 Connector on port 8180 -->
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8180" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8543"
               acceptCount="10" debug="0" connectionTimeout="60000"/>

    <!-- Define an AJP 1.3 Connector on port 8109 -->
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Standalone" defaultHost="localhost" debug="0">

       <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"

      <!-- Because this Realm is here, an instance will be shared globally -->

      <Realm className="org.apache.catalina.realm.MemoryRealm" />

        <!-- Define the default virtual host -->
      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">

	<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" 
w are you today? 
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="w are you today? logs"  
prefix="localhost_access_log." suffix=".txt"

        <!-- Logger shared by all Contexts related to this virtual host.  By
             default (when using FileLogger), log files are created in the 
             directory relative to $CATALINA_HOME.  If you wish, you can 
             a different directory with the "directory" attribute.  Specify 
either a
             relative (to $CATALINA_HOME) or absolute path to the desired
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="/var/log/httpd"  prefix="tomcat_localhost_log." 

        <!-- Tomcat Manager Context -->
        <Context path="/manager" docBase="manager" 
         debug="0" privileged="true"/>


Tore Skogly

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

View raw message