I'll give it another try, and hope someone can help me in sorting this problem 
out...

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 
pages.
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 
help??


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

LoadModule jk_module modules/mod_jk.so
AddModule mod_jk.c

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

# Configure mod_jk
#
JkWorkersFile /var/tomcat4/conf/workers.properties
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" 
                        modJk="/etc/httpd/modules/mod_jk.so"/>

  <!-- 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"
              timestamp="true"/>

      <!-- 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" 
                        modJk="/etc/httpd/modules/mod_jk.so"/>
w are you today? 
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="w are you today? logs"  
prefix="localhost_access_log." suffix=".txt"
                 pattern="common"/>

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

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

      </Host>
    </Engine>
  </Service>
</Server>

-- 
regards,
Tore Skogly

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to