tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <JTur...@AAS.com>
Subject RE: servlet mapping help (could be: mod_jk config help)
Date Tue, 15 Oct 2002 18:39:19 GMT

Oops...my bad.  Too many conversations going on at once.  

Just in case I sent someone down the wrong path by accident, this is my
working configuration for the Tomcat examples on localhost:

workers.properties
==================
workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.10
workers.java_home=/usr/java/j2sdk1.4.0_01
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

httpd.conf
==================
<IfModule !mod_jk.c>
  LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
</IfModule>
JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
JkLogLevel emerg

# Static files
Alias /examples "/usr/local/tomcat/webapps/examples"

<Directory "/usr/local/tomcat/webapps/examples">
   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp
</Directory>

# Deny direct access to WEB-INF and META-INF
#
<Location "/examples/WEB-INF/*">
  AllowOverride None
  deny from all
</Location>

<Location "/examples/META-INF/*">
  AllowOverride None
  deny from all
</Location>

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/SendMailServlet  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13

server.xml
===========
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
  port="8009" minProcessors="5" maxProcessors="75"
  acceptCount="10" debug="0"/>
 
HTH

John

> -----Original Message-----
> From: Milt Epstein [mailto:mepstein@uiuc.edu]
> Sent: Tuesday, October 15, 2002 2:29 PM
> To: Tomcat Users List
> Subject: RE: servlet mapping help
> 
> What do you have where "ajp13" is, and where "some-name" is?  Because
> they need to match.  Because the second argument to JkMount is a
> worker, the worker that should handle requests that match the URL
> pattern given (in the first argument).  And the
> worker.some-name.... settings define worker "some-name".
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message