Hello everybody,
i'm new to these topics and i'm in deep trouble trying to integrate
Apache 2.0.43 an Tomcat4. I have done as follows:
- downloaded from the Apache site the mod_jk-2_0_42.so;
- have added the following line in my server.xml file:
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/usr/local/apache2/modules/mod_jk-2_0_42.so"
workersConfig="/var/tomcat4/conf/jk/workers.properties" jkDebug="info"
jkLog="/var/tomcat4/logs/mod_jk.log"/>
and after the <host name="localhost"...> tags
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" />
- in ($TOMCAT_HOME)/conf/jk i put a workers.properties file with this
content:
workers.tomcat_home=/var/tomcat4
workers.java_home=$(JAVA_HOME)
ps=\
- restarting Tomcat it creates a new directory :
($TOMCAT_HOME)/conf/auto containing a new file: mod_jk.conf with the
following lines:
<IfModule !mod_jk.c>
LoadModule jk_module /usr/local/apache2/modules/mod_jk-2_0_42.so
</IfModule>
JkWorkersFile "/var/tomcat4/conf/jk/workers.properties"
JkLogFile "/var/tomcat4/logs/mod_jk.log"
JkLogLevel info
<VirtualHost localhost>
ServerName localhost
JkMount /webdav ajp13
JkMount /webdav/* ajp13
JkMount /admin ajp13
JkMount /admin/* ajp13
JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /manager ajp13
JkMount /manager/* ajp13
JkMount /CDS ajp13
JkMount /CDS/* ajp13
JkMount /liste ajp13
JkMount /liste/* ajp13
JkMount /liste-1 ajp13
JkMount /liste-1/* ajp13
</VirtualHost>
- i copied the lines of this file in the httpd.conf file after the last
LoadModule line
- i restarted the apache web server and i get the following messages in
the Apache's error_log :
[Mon Nov 25 16:34:33 2002] [notice] caught SIGTERM, shutting down
[Mon Nov 25 16:37:33 2002] [notice] Apache/2.0.43 (Unix)
mod_jk/1.2.0 configured -- resuming normal operations
[Mon Nov 25 16:49:50 2002] [notice] caught SIGTERM, shutting down
[Mon Nov 25 16:50:29 2002] [notice] Apache/2.0.43 (Unix)
mod_jk/1.2.0 configured -- resuming normal operations
[Mon Nov 25 16:51:15 2002] [notice] caught SIGTERM, shutting down
[Mon Nov 25 16:52:40 2002] [notice] Apache/2.0.43 (Unix)
mod_jk/1.2.0 configured -- resuming normal operations
- i also have a file workers2.properties(in the same directory as
mod_jk-2_0_42.so) like this:
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009
Is the approach correct or not?
Is there anything right in what i did? :-)
I hope that someone will help me, i'm getting mad....
Thanks in advance!
Greetings.
Mauro Brandle
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>