Hi robert !

I wrote this e-mail this morning.
It could help you !

good luck.


==========================================================================


Firstly I think it is better to get tomcat 4.0.1 or higher because the ajp module 
isn't packaged in the 4.0.
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/
After that you need the module mod_jk for apache. You can downlaod the .dll for 
windows or the .so for unixes from the Tomcat 3.3 distrib :
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/

Tomcat configuration :
-edit the conf/server.xml
-uncomment the AJP 1.3 connector :
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

Apache configuration :
-copy the mod_jk module under the directory modules (for windows) or libexec (for 
unixes)
-copy the workers.properties attached to this mail in the conf directory.
-Edit it and modify the values of : workers.tomcat_home, workers.java_home and ps
-Edit your httpd.cong file.
- Add at the bottom this lines :

#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll

JkWorkersFile "C:/Programs/Apache1.3.22/conf/workers.properties"
JkLogFile "C:/Programs/Apache1.3.22/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 ajp13
JkMount /servlet/* ajp13

#########################################################
# Auto configuration for the /examples context starts.
#########################################################

#
# The following line makes apache aware of the location of the /examples context
#
Alias /examples "C:/Programs/Tomcat4.0.1/webapps/examples"
<Directory "C:/Programs/Tomcat4.0.1/webapps/examples">
    Options Indexes FollowSymLinks
</Directory>

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13

#
# The following line prohibits users from directly accessing WEB-INF
#
<Location "/examples/WEB-INF/">
    AllowOverride None
    deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Programs/Tomcat4.0.1/webapps/examples/WEB-INF/">
    AllowOverride None
    deny from all
</Directory>

#
# The following line prohibits users from directly accessing META-INF
#
<Location "/examples/META-INF/">
    AllowOverride None
    deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Programs/Tomcat4.0.1/webapps/examples/META-INF/">
    AllowOverride None
    deny from all
</Directory>

#######################################################
# 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 "C:/Programs/Tomcat4.0.1/webapps/admin"
<Directory "C:/Programs/Tomcat4.0.1/webapps/admin">
    Options Indexes FollowSymLinks
</Directory>

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /admin/servlet/* ajp13
JkMount /admin/*.jsp ajp13

#
# The following line prohibits users from directly accessing WEB-INF
#
<Location "/admin/WEB-INF/">
    AllowOverride None
    deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Programs/Tomcat4.0.1/webapps/admin/WEB-INF/">
    AllowOverride None
    deny from all
</Directory>

#
# The following line prohibits users from directly accessing META-INF
#
<Location "/admin/META-INF/">
    AllowOverride None
    deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "C:/Programs/Tomcat4.0.1/webapps/admin/META-INF/">
    AllowOverride None
    deny from all
</Directory>

#######################################################
# Auto configuration for the /admin context ends.
#######################################################


You should modify all directories for your system.
This example should deploy contexts /examples and /admin under apache.

Start Tomcat and Apache. I should work.

For the files configuration syntaxe you can see the documentation of Tomcat 3.3.
This is the same adapter used for TC 3.3 and TC 4.

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/Tomcat-Workers-HowTo.html
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html


Good luck.


 


> -----Message d'origine-----
> De:   Robert Douglass [SMTP:[EMAIL PROTECTED]]
> Date: mardi 19 mars 2002 12:55
> A:    Tomcat-User@Jakarta. Apache. Org
> Objet:        Tomcat 4 with Apache 1.3
> 
> Could someone please point me to a FAQ or other resource that expains how to
> configure Tomcat and Apache to run with each other (WIN2K)? I haven't found
> this in the Tomcat user's manual. I am new to both systems and need
> something aimed at newbies. Thanks,
> Robert Douglass
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

Attachment: workers.properties
Description: Binary data

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to