Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 80772 invoked from network); 18 Feb 2009 18:46:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 18:46:14 -0000 Received: (qmail 80947 invoked by uid 500); 18 Feb 2009 18:46:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 80924 invoked by uid 500); 18 Feb 2009 18:46:03 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 80905 invoked by uid 99); 18 Feb 2009 18:46:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 10:46:03 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.40] (HELO QMTA04.westchester.pa.mail.comcast.net) (76.96.62.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 18:45:54 +0000 Received: from OMTA06.westchester.pa.mail.comcast.net ([76.96.62.51]) by QMTA04.westchester.pa.mail.comcast.net with comcast id HR9Z1b01216LCl054WlaaE; Wed, 18 Feb 2009 18:45:34 +0000 Received: from [192.168.1.101] ([69.143.128.194]) by OMTA06.westchester.pa.mail.comcast.net with comcast id HWly1b00M4BnRt93SWlylV; Wed, 18 Feb 2009 18:45:59 +0000 Message-ID: <499C5740.3090807@christopherschultz.net> Date: Wed, 18 Feb 2009 13:45:20 -0500 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Apache/mod_jk serves random files from tomcat References: <18385568.post@talk.nabble.com> <21812944.post@talk.nabble.com> <21861245.post@talk.nabble.com> <21861548.post@talk.nabble.com> <46502154-2A14-42DD-9AA0-9092AFA96D76@r-u-on.com> <49923A2D.6080906@christopherschultz.net> <4992D658.1010303@christopherschultz.net> <4994A65B.5000808@christopherschultz.net> <1C765A12-92F8-422C-91FA-ECEF3153EF49@r-u-on.com> In-Reply-To: <1C765A12-92F8-422C-91FA-ECEF3153EF49@r-u-on.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yuval, On 2/17/2009 1:48 PM, Yuval Perlov wrote: > Is APR part of tomcat or apache [httpd]? APR is the Apache Portable Runtime. Technically, it's its own beast and is used by both httpd and Tomcat (optionally). > If I am running on linux and have no > .so files in my tomcat directory does that mean I have no APR installed? The Tomcat directory isn't the only place .so files could be located. Anywhere in the java.library.path is possible. If you have an AprLifecycleListener configured in your server.xml, then you are attempting to use APR. If you get a message in catalina.out on startup that says something like "APR Configured" or "APR library not found" then you have your answer. > On a more positive note, we switched to proxy_http (after making the > necessary code changes) and everything works now - no more mixed content. > > Of course we lost a lot of necessary functionality: > 1. request.isSecure() doesn't work You can always use https :) > 2. we don't know the server name we are hit with (since it is "hard > coded" in httpd.conf) This should be an option in mod_proxy. Is it not? ProxyPreserveHost? > 3. we have no access to the source IP (for geo location) Why not use mod_headers to convert the original IP address into an X-Original-IP header. Better yet, use the X-Forwarded-For header that should be set by default by mod_proxy. > BTW - Am I the only one that is seriously worried that this kind of > problem can even exist on a platform of this maturity? Which problem? The "swapping-responses" problem or everything else you've outlined about your inadequate configuration? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmcV0AACgkQ9CaO5/Lv0PBw4wCgtvTgf5Jy6z30u9Z3z/8M9ViN stwAn1urDcjts1xtPvSMiSuL00jEMYPV =/Ge+ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org