Hello,
I think you should use the AJP connector.
So ..
In your server.xml : (with mod_jk2)
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
minProcessors="5"
maxProcessors="75"
acceptCount="10"
debug="0"/>
for mod_jk, it's the same without the protocolHandlerClassName line ...
Then, in the "$CATALINA_HOME/conf/jk/workers.properties" file :
example :
workers.tomcat.home=/usr/java/tomcat4
workers.java.home=/usr/java/j2sdk1.4.1
ps=/
worker.list = testWorker1
worker.testWorker1.port=8009
worker.testWorker1.host=localhost
worker.testWorker1.type=ajp13
Now we'll configure tomcat to automatically generate the mod_jk.conf (An
apache configuration file)
To do so, just add the following lines immediately after the <Server
port="8005" ...> declaration
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/usr/apache2/modules/mod_jk.so"
workersConfig="/usr/java/tomcat4/conf/jk/workers.properties"
jkLog="/usr/java/tomcat4/logs/mod_jk.log"
jkDebug="info"
/>
for creating the appropriate mappings for apache <VirtualHost> entries
in the resultant mod_jk.conf file, add a listener below each <Host>
entry in your server.xml file.
Example :
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true"/>
...
This corresponds to the entire tomcat installation but we can choose
single tomcat contexts by adding the listener after the <Context> entry
we are interested in.
Once we do this, the mod_jk.conf file will automatically reflect the
corresponding mapping.
(You could also have edited your httpd.conf and add the appropriate
lines by hand)
Finally we'll create an alias for the tomcat context so that Apache
automatically serves any static resources it contains. Using this alias,
apache will forward all requests that map to a jsp page/Servlet under
this context to the appropriate tomcat instance.
in httpd.conf :
#create the alias
Alias /examples/ "/usr/java/tomcat4/webapps/examples/"
#allow access
<Directory "/usr/java/tomcat4/webapps/examples/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#prevent the unauthorized access to WEB-INF
<Location /*/WEB-INF/*>
AllowOverride None
Deny from all
</Location>
And last but not least, insert the automatically generated mod_jk.conf
file by appending this line to your httpd.conf
Include /usr/java/tomcat4/conf/auto/mod_jk.conf
You'll certainly have to adapt all this to your pathes but that should
do the trick.
Good luck ;)
Backslash
[EMAIL PROTECTED]
Le sam 08/03/2003 � 00:34, Jinesh Varia a �crit :
> I juse john turners how tos...please refer my steps based on john turners.
> did I do it correctway? Its in my previos email
>
> I tried using coyote connector but it was same...thought jk2 would solve it...but it
> also did
> not..
>
> PLEASE HELP
>
> any HELP will be worshiped
>
> jinesh
> --- Filip Hanik <[EMAIL PROTECTED]> wrote:
> > www.johnturner.com/howto/
> >
> > I think you want to be using the coyote connector
> >
> > Filip
> >
>
>
> =====
> -----------------------------------------------------------------
> Jinesh Varia
> Graduate Student, Information Systems
> Pennsylvania State University
> Email: [EMAIL PROTECTED]
> -----------------------------------------------------------------
> 'Self is the author of its actions.'
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]