Re: mod_jk and apache problem
Tom, Tom Miller wrote: The following said that if client click on links that including *.jsp then forward the requested to tomcat using worker2. But where will it go when the traffic forward to tomcat. If one have more than one context under Tomcat. How does it know which one to go from the three. Each worker you have points to an instance of Tomcat (it can be more complicated than that, but this is generally true). Based upon the /path/ of the URI, Tomcat will choose the correct webapp. JkMount /*.jsp worker2 If you have a webapp deployed into '/foo' and you access '/foo/bar.jsp', then you will be sent to the 'foo' webapp. Per your and other suggestion, I did this and it will give me error via the apache log. *** modified httpd.conf file JkMount /tticket/*.jsp worker2 So, you are expecting either a webapp called 'tticket' or you are using the ROOT webapp and have a directory called 'tticket' in there. Can you give us more details about your deployment? -chris signature.asc Description: OpenPGP digital signature
RE: mod_jk and apache problem
-Original Message- From: Tom Miller [mailto:[EMAIL PROTECTED] Sent: Saturday, October 28, 2006 3:49 PM To: Tomcat Users List Subject: mod_jk and apache problem The following said that if client click on links that including *.jsp then forward the requested to tomcat using worker2. But where will it go when the traffic forward to tomcat. If one have more than one context under Tomcat. How does it know which one to go from the three. for example: of multiple context under Tomcat. /app/webapps/ROOT/ /app/webapps/monpop/ /app/webapps/tticket/ ***httpd.conf file JkMount /*.jsp worker2 Per your and other sugguestion, I did this and it will give me error via the apache log. *** modified httpd.conf file JkMount /tticket/*.jsp worker2 It said File does not exist: /www/tticket/js/new_menu_settings1.js. I agreed with the error. It doesn't make sense to me either. I need to define or point /app/webapps/tticket/ to worker2 somehow. I don't know how.. I missed something here but I don't know what. Tom - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You have configured mod_jk connector to serve jsp files and nothing else. Darek Czarkowki - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk and apache problem
Darek- You forgot to Add VirtualHost documentRoot=PointToPhysicalLocationOfFile then JkMount /*.jsp ajp13 in worker.properties file follow these instructions in detail http://mail-archives.apache.org/mod_mbox/tomcat-users/200101.mbox/[EMAIL PROTECTED] Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: Darek Czarkowski [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org; [EMAIL PROTECTED] Sent: Sunday, October 29, 2006 4:28 PM Subject: RE: mod_jk and apache problem -Original Message- From: Tom Miller [mailto:[EMAIL PROTECTED] Sent: Saturday, October 28, 2006 3:49 PM To: Tomcat Users List Subject: mod_jk and apache problem The following said that if client click on links that including *.jsp then forward the requested to tomcat using worker2. But where will it go when the traffic forward to tomcat. If one have more than one context under Tomcat. How does it know which one to go from the three. for example: of multiple context under Tomcat. /app/webapps/ROOT/ /app/webapps/monpop/ /app/webapps/tticket/ ***httpd.conf file JkMount /*.jsp worker2 Per your and other sugguestion, I did this and it will give me error via the apache log. *** modified httpd.conf file JkMount /tticket/*.jsp worker2 It said File does not exist: /www/tticket/js/new_menu_settings1.js. I agreed with the error. It doesn't make sense to me either. I need to define or point /app/webapps/tticket/ to worker2 somehow. I don't know how.. I missed something here but I don't know what. Tom - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You have configured mod_jk connector to serve jsp files and nothing else. Darek Czarkowki - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk and apache problem
worker.worker3.type=ajp13 worker.worker3.cachesize=100 worker.worker3.cache_timeout=60 worker.worker3.socket_keepalive=1 worker.worker3.socket_timeout=5 worker.worker3.recycle_timeout=30 *** end of workers.properties file * *** server.xml file !-- Define an AJP 1.3 Connector on port 8110 -- Connector port=8110 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / !-- Define an AJP 1.3 Connector on port 8111 -- Connector port=8111 enableLookups=false redirectPort=8444 protocol=AJP/1.3 / !-- Define an AJP 1.3 Connector on port 8112 -- Connector port=8112 enableLookups=false redirectPort=8445 protocol=AJP/1.3 / Host name=localhost appBase=/app/webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false ***end of server.xml *** Tom Original message Date: Sun, 29 Oct 2006 07:54:15 -0500 From: Christopher Schultz Subject: Re: mod_jk and apache problem To: Tomcat Users List users@tomcat.apache.org Tom, Tom Miller wrote: The following said that if client click on links that including *.jsp then forward the requested to tomcat using worker2. But where will it go when the traffic forward to tomcat. If one have more than one context under Tomcat. How does it know which one to go from the three. Each worker you have points to an instance of Tomcat (it can be more complicated than that, but this is generally true). Based upon the /path/ of the URI, Tomcat will choose the correct webapp. JkMount /*.jsp worker2 If you have a webapp deployed into '/foo' and you access '/foo/bar.jsp', then you will be sent to the 'foo' webapp. Per your and other suggestion, I did this and it will give me error via the apache log. *** modified httpd.conf file JkMount /tticket/*.jsp worker2 So, you are expecting either a webapp called 'tticket' or you are using the ROOT webapp and have a directory called 'tticket' in there. Can you give us more details about your deployment? -chris signature.asc (1k bytes) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk and apache problem
The following said that if client click on links that including *.jsp then forward the requested to tomcat using worker2. But where will it go when the traffic forward to tomcat. If one have more than one context under Tomcat. How does it know which one to go from the three. for example: of multiple context under Tomcat. /app/webapps/ROOT/ /app/webapps/monpop/ /app/webapps/tticket/ ***httpd.conf file JkMount /*.jsp worker2 Per your and other sugguestion, I did this and it will give me error via the apache log. *** modified httpd.conf file JkMount /tticket/*.jsp worker2 It said File does not exist: /www/tticket/js/new_menu_settings1.js. I agreed with the error. It doesn't make sense to me either. I need to define or point /app/webapps/tticket/ to worker2 somehow. I don't know how.. I missed something here but I don't know what. Tom - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]