Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 30869 invoked from network); 13 Jun 2002 18:22:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Jun 2002 18:22:26 -0000 Received: (qmail 2480 invoked by uid 97); 13 Jun 2002 18:22:11 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 2463 invoked by uid 97); 13 Jun 2002 18:22:11 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2451 invoked by uid 98); 13 Jun 2002 18:22:10 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <83F0258A9996D311B14200A0C98F17360202C11B@aas-internet.aas.com> From: "Turner, John" To: 'Tomcat Users List' Subject: RE: mod_jk and Mapping configuration error Date: Thu, 13 Jun 2002 14:22:03 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C21307.37975A80" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C21307.37975A80 Content-Type: text/plain; charset="iso-8859-1" I haven't had a chance to try this yet, but a friend of mine sent this to me late yesterday, it is apparently working for him and seems to be "solid". He's using apache 1.3. No guarantees that it will work for you, but it might be worth a shot. I'm going to try it out a little later today for sure. Apologies to Matthew B. for posting this. :) ** in httpd.conf ** #testing mod_jk! LoadModule jk_module libexec/mod_jk-01.so AddModule mod_jk.c JkWorkersFile "/usr/local/tomcat-4.0.3/conf/jk/workers.properties" JkLogFile "/usr/local/tomcat-4.0.3/logs/mod_jk.log" ## for testing, tune this down for production JkLogLevel debug Alias /jsp "/some/path/to/jsp" Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp JkMount /jsp/*.jsp ajp13 Alias /servlet "/some/path/to/servlet" Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp JkMount /servlet/* ajp13 ** workers.properties file **: workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.3-LE-jdk14 workers.java_home=/usr/java/j2sdk1.4.0 ps=/ worker.list=ajp13 worker.ajp13.port=8007 worker.ajp13.host=some.host.com worker.ajp13.type=ajp13 ALSO: comment out the AddType text/jsp .js and AddHandler jserv-servlet .jsp directives. The above config passes off anything in the aliased directories to the ajp13 connector, and anything else gets served by apache. John Turner jturner@aas.com http://www.aas.com -----Original Message----- From: Alex Short [mailto:alex@short.net] Sent: Thursday, June 13, 2002 2:11 PM To: Tomcat Users List Subject: Re: mod_jk and Mapping configuration error I'm using Tomcat 4.0.3 I've tried looking all over the place for good documentation of apache+tomcat using mod_jk with Virtual Hosts and found many different (but none that worked for me) solutions. Some said to put Host name= in the server.xml, others said put it in the workers.properties file. Finally i got it sort of working by creating a symbolic link in webapps called www.ialex.net which points to my web dir. But unfortunately that only works if i do www.ialex.net/www.ialex.net/index.jsp. otherwise it just gives me a 404. I've fiddled with Context host name and docBase etc, to no avail. Does anyone have a working set of server.xml config files for a virtual host setup using apache+tomcat4+mod_jk ? I want to have .jsp files within my webdirectory and point them to tomcat by file extention as i tried with JkMount /*.jsp ajp13 in my config. Thanks Alex ------_=_NextPart_001_01C21307.37975A80--