Re: Connecting Apache Tomcat to Apache
This was also the answer for me (original poster). I placed the mount directives directly in the virtual host that I needed it in and all works well. Thank you for the assistance. I am sure I will be back with additional questions...so don't go far. Very Respectfully, Mike On Wed, 2009-01-28 at 15:03 -0800, Jordan Michaels wrote: Thanks folks. Oddly enough I ran into this same issue with almost an identical system at the same time as the original poster (odd in itself), and this solution fixed me right up. I added the JkMountCopy all line under the rest of my global jkmount lines and that fixed me right up. Thank you! Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider Rainer Jung wrote: Well answered until here. I assume it's the old put your JkMount into the virtual host problem. kMount does only apply to the virtual host they are put into. So when they are in the global server, but your requests to httpd are handled by a VirtualHost, then the JkMounts are not effective for those requests. To keep it simple, you can set JkMountCopy all in the global server, or you can move the JkMount lines to the virtual hosts which should actually do the forwarding. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Connecting Apache Tomcat to Apache
Hi, I am new to Tomcat and trying to get it up and running. I have an Apache server (2.2.3) running on CentOS 5.2. I want to add the capabilities that tomcat brings, mainly JSP for now. I followed the connector tutorial/guide on the web site. I have tomcat running and can access pages if I use the port number in the url. According to the guide, Apache should be handing .jsp requests over to tomcat automatically. I have went through the guide twice...still no luck. Can anyone provide a point in the right direction to resolve this? I have no idea where to look. I have tried several different config solutions Apache is serving two domains. I am assuming that I should be able to access the default index.jsp page by adding that onto the end of the domain, i.e. the web site is www.mungusandcleatus.com so I add www.mungusandcleatus.com/index.jsp If this is the wrong approach...can someone push me in the right direction? Thanks List...you are the best! Mike - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connecting Apache Tomcat to Apache
Ok, workers.properties is as follows: workers.tomcat_home=/usr/lib/apache-tomcat workers.java_home=/usr/lib/jdk worker.list=worker1 worker.worker1.port=8009 worker.worker1.host=webber worker.worker1.type=ajp13 This is a simple file from the tutorial. The jkmount directives in httpd-conf... I followed the tutorial to use the auto config, so in httpd.conf I have the following: Include /usr/lib/apache-tomcat/conf/auto/mod_jk.conf The contents of mod_jk.conf is as follows: ## Auto generated on Wed Jan 28 15:05:37 EST 2009## IfModule !mod_jk.c LoadModule jk_module /usr/lib/httpd/modules/mod_jk-1.2.27-httpd-2.2.6.so /IfModule JkWorkersFile /usr/lib/apache-tomcat/conf/jk/workers.properties JkLogFile /usr/lib/apache-tomcat/logs/mod_jk.log JkLogLevel emerg I do not have a directory /etc/apache2/mods-available nor can I find the files jk.conf and jk.load there is also no directory /etc/apache2/mods-enabled my connector definition from ${CATALINA_HOME}/conf/server.xml is: Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Again, all this was created and configured according to the guide/tutorial. Thanks, Mike On Wed, 2009-01-28 at 20:54 +0100, Gregor Schneider wrote: If you want people to help you, it's a good idea to post - workers.properties (should be in /etc/apache2) - your jkmount-directives (should be in the httpd-conf-file of your domain) Not knowing CentOS, therefore just a shot from the hip: - do you have a directory /etc/apache2/mods-available? If so, are there two file jk.conf and jk.load? Can you post your jk.conf? - do you have a directory /etc/apache2/mods-enabled? If so, do you also find there symbolic links pointing to /etc/apache2/mods-available/jk.load and /etc/apache2/mods-available/jk.conf? In ${CATALINA_HOME}/conf/server.xml, have you specified a connector for AJP/1.3? Should look similar to Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 address=127.0.0.1/ Can you post your connector-definition? rgds Gregor - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org