You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Slymer <fa...@tin.it> on 2001/03/03 11:00:35 UTC

TOMCAT(mod_jk)+APACHE????

Hello all, I've installed Apache 1.3.12 an Tomcat 3.2.1 on my Linux
Slackware 7.0.
I've also compiled mod_jk to make Apache and Tomcat work together.
No problems installing Tomcat,Apache and neither compiling mod_jk.
When I use a browser to connect to for example localhost I can see
correctly the page index.html from Apache and also if I request a page on
localhost:8080 Tomcat works well (I can see the examples working), but if
I make a request of a jsp page from index.html of Apache I see all the
tags of the jsp directives.
Seems like jsp pages are not recognised from Apache and they are not
processed by Tomcat.
I'm including in this mail my "mod_jk.conf-auto" file:

###################################################################
# Auto generated configuration. Dated: Sat Mar 03 10:08:43 CET 2001
###################################################################
#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module libexec/mod_jk.so
JkWorkersFile
/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/conf/workers.properties
JkLogFile /dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/logs/mod_jk.log
#
# Log level to be used by mod_jk
#
JkLogLevel error
###################################################################
#                     SSL configuration                           #
# 
# By default mod_jk is configured to collect SSL information from
# the apache environment and send it to the Tomcat workers. The
# problem is that there are many SSL solutions for Apache and as
# a result the environment variable names may change.
#
# The following (commented out) JK related SSL configureation
# can be used to customize mod_jk's SSL behaviour.
# 
# Should mod_jk send SSL information to Tomact (default is On)
# JkExtractSSL Off
# 
# What is the indicator for SSL (default is HTTPS)
# JkHTTPSIndicator HTTPS
# 
# What is the indicator for SSL session (default is SSL_SESSION_ID)
# JkSESSIONIndicator SSL_SESSION_ID
# 
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
# JkCIPHERIndicator SSL_CIPHER
# 
# What is the indicator for the client SSL certificated (default is
SSL_CLIENT_CERT)
# JkCERTSIndicator SSL_CLIENT_CERT
# 
#                                                                 #
###################################################################
#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
#########################################################
# Auto configuration for the /examples context starts.
#########################################################
#
# The following line makes apache aware of the location of the /examples
context
#
Alias /examples
"/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/examples"
<Directory
"/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/examples">
    Options Indexes FollowSymLinks
</Directory>
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12
#
# The following line prohibits users from directly accessing WEB-INF
#
<Location "/examples/WEB-INF/">
    AllowOverride None
    deny from all
</Location>
#
# The following line prohibits users from directly accessing META-INF
#
<Location "/examples/META-INF/">
    AllowOverride None
    deny from all
</Location>
#######################################################
# Auto configuration for the /examples context ends.
#######################################################

#########################################################
# Auto configuration for the /admin context starts.
#########################################################
#
# The following line makes apache aware of the location of the /admin
context
#
Alias /admin "/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/admin"
<Directory "/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/admin">
    Options Indexes FollowSymLinks
</Directory>
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /admin/servlet/* ajp12
JkMount /admin/*.jsp ajp12
#
# The following line prohibits users from directly accessing WEB-INF
#
<Location "/admin/WEB-INF/">
    AllowOverride None
    deny from all
</Location>
#
# The following line prohibits users from directly accessing META-INF
#
<Location "/admin/META-INF/">
    AllowOverride None
    deny from all
</Location>
#######################################################
# Auto configuration for the /admin context ends.
#######################################################
#########################################################
# Auto configuration for the /test context starts.
#########################################################
#
# The following line makes apache aware of the location of the /test
context
Alias /test "/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/test"
<Directory "/dark/fabri/scarico/PROJ/jakarta-tomcat-3.2.1/webapps/test">
    Options Indexes FollowSymLinks
</Directory>
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /test/servlet/* ajp12
JkMount /test/*.jsp ajp12
#
# The following line prohibits users from directly accessing WEB-INF
#
<Location "/test/WEB-INF/">
    AllowOverride None
    deny from all
</Location>
#
# The following line prohibits users from directly accessing META-INF
#
<Location "/test/META-INF/">
    AllowOverride None
    deny from all
</Location>
#######################################################
# Auto configuration for the /test context ends.
####################################################### 




Can someone help me?
Many thanks in advance.
Fabrizio