From owner-freebsd-questions@FreeBSD.ORG Tue Feb 19 00:57:14 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B108216A420 for ; Tue, 19 Feb 2008 00:57:14 +0000 (UTC) (envelope-from rock_on_the_web@comcen.com.au) Received: from angel.comcen.com.au (angel.comcen.com.au [203.23.236.69]) by mx1.freebsd.org (Postfix) with ESMTP id 5574B13C465 for ; Tue, 19 Feb 2008 00:57:14 +0000 (UTC) (envelope-from rock_on_the_web@comcen.com.au) Received: from [192.168.0.199] (202-172-126-254.cpe.qld-1.comcen.com.au [202.172.126.254]) by angel.comcen.com.au (8.13.4/8.12.9) with ESMTP id m1J0sNmK030664 for ; Tue, 19 Feb 2008 11:54:25 +1100 (EST) From: Da Rock To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Tue, 19 Feb 2008 10:54:18 +1000 Message-Id: <1203382458.6470.32.camel@laptop2.herveybayaustralia.com.au> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-1.fc8) Content-Transfer-Encoding: 7bit X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-16.549, required 4, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.25, BAYES_00 -15.00) X-comcen-MailScanner-From: rock_on_the_web@comcen.com.au Subject: Configuring mod_jk for Apache and Tomcat X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2008 00:57:14 -0000 I'm trying to setup a tomcat server using Apache as the frontend. As usual, I'm having trouble (which is why I haven't bothered before, and given Tomcat apps a wide berth). Can someone let me know where I'm going wrong? I have setup inclusions in the httpd.conf file to use similar settings to other modules, etc. Therefore my worker.properties and mod_jk.conf is under /extras. I know something works because they are reflected when I navigate to /webapps on the Apache server. mod_jk.conf: # Replace jsp-hostname with the hostname of your JSP server, as # specified in workers.properties. # JkWorkersFile etc/apache22/extra/workers.properties JkLogFile /var/log/jk.log JkShmFile /var/log/jk-runtime-status JkLogLevel error # Sample JkMounts. Replace these with the paths you would # like to mount from your JSP server. JkMount /*.jsp localhost JkMount /servlet/* localhost JkMount /examples/* localhost # Map encoded urls SetHandler jakarta-servlet # Map subdirectory SetHandler jakarta-servlet workers.properties: # Incredibly simple workers.properties file, intended for connecting # to one host, via AJP13. See the tomcat documentation for # information on more exotic configuration options. # # Change jsp-hostname to the hostname of your JSP server. # worker.list=localhost workers.tomcat_home=/usr/local/apache-tomcat6.0 workers.java_home=/usr/local/diablo-jdk1.5.0 worker.localhost.port=8009 worker.localhost.host=localhost worker.localhost.type=ajp13 worker.localhost.lbfactor=1 I figured I didn't need to worry about the setenv variable as I'm only testing currently and only need one connector atm. Any ideas why I shouldn't be seeing the index.jsp found in the Tomcat directories? I also tried navigating directly using port 8009 with no result either (And yes, Tomcat has been started- I checked the port using nmap).