my mod_jk.conf looks like somthing like this:
<IfModule !mod_jk.c>
LoadModule jk_module "C:/Program Files/Apache Software
Foundation/Apache2.2/modules/mod_jk.so"
</IfModule>
JkWorkersFile
"C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties"
JkLogFile
"C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/logs/mod_jk.log"
JkLogLevel trace
I don't see any JkMount directives anywhere in the configs you posted.
That's the directive that tells Apache Httpd to send requests for tomcat
back to tomcat. Assuming you are mounting a webapp named "examples"
from tomcat, the JkMount would be:
JkMount /examples/* ajp13
Restarted whole thing. Still I can not go to follwoing web page.
http://localhost/examples/jsp/index.html
BTW, what exactly do you get instead of the page? A 404 error? Is it
from Httpd or Tomcat? Tomcat's 404s actually have "Apache Tomcat"
included in the default error.
--David
rangeli nepal wrote:
Recently I installed apache and tomcat. Environment is depicted int subject
line. They both work nice and fine independently.
I am trying to integrate them with mod_jk.
I belive I followed all the steps suggested by document.
1. I downloaded mod_jk ( 1.2.26) kept it as mod_jk.so in modules directory
and added following in line httpd.conf
LoadModule jk_module modules/mod_jk.so
2. Went to tomcat Installation, changed server.xml. Added following lines.
<Listener className="org.apache.jk.config.ApacheConfig" modJk="C:/Program
Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so"
workersConfig="C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties"
/>
Afte the line
<Server port="8005" shutdown="SHUTDOWN">
Then Added
<Listener className="org.apache.jk.config.ApacheConfig" append="true"
forwardAll="false" modJk="C:/Program Files/Apache Software
Foundation/Apache2.2/m
odules/mod_jk.so" />
After the line
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
started the tomcat mod_jk.conf was created.
3. Went back to http.conf Added following line at the end
Include
C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/auto/mod_jk.conf-auto
Also added following lines after LoadModules
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
Restarted whole thing. Still I can not go to follwoing web page.
http://localhost/examples/jsp/index.html
4. Created workers.properties file in ./con/jk ( in tomcat installation). It
looks like follwoing
# Define 1 real worker using ajp13
worker.list=ajp13
# Set properties for ajp13 (ajp13)
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
After Reading couple of messages on newsgroup, I thought it will solve the
issue if I move the <VirtualHost ...> Section from mod_jk.conf to httpd.conf
but no avail.
my mod_jk.conf looks like somthing like this:
<IfModule !mod_jk.c>
LoadModule jk_module "C:/Program Files/Apache Software
Foundation/Apache2.2/modules/mod_jk.so"
</IfModule>
JkWorkersFile
"C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/conf/jk/workers.properties"
JkLogFile
"C:/softwares/Apache/apache-tomcat-6.0.16/apache-tomcat-6.0.16/logs/mod_jk.log"
JkLogLevel trace
am I missing something? Worst thing I can not see mod_jk log
Thank you.
rn
--
David Smith
Programmer/Analyst
College of Agriculture and Life Sciences
Cornell University
B32 Morrison Hall
Ithaca, NY 14853
Phone: (607) 255-4521
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]