Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E475D77C for ; Mon, 26 Nov 2012 20:51:03 +0000 (UTC) Received: (qmail 91942 invoked by uid 500); 26 Nov 2012 20:51:00 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 91915 invoked by uid 500); 26 Nov 2012 20:51:00 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 91906 invoked by uid 99); 26 Nov 2012 20:51:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2012 20:51:00 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 76.96.62.16 is neither permitted nor denied by domain of jim@jagunet.com) Received: from [76.96.62.16] (HELO qmta01.westchester.pa.mail.comcast.net) (76.96.62.16) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2012 20:50:52 +0000 Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52]) by qmta01.westchester.pa.mail.comcast.net with comcast id ULTZ1k00917dt5G51LqXsx; Mon, 26 Nov 2012 20:50:31 +0000 Received: from [192.168.199.10] ([69.251.80.74]) by omta13.westchester.pa.mail.comcast.net with comcast id ULqU1k01a1cCKD93ZLqWSN; Mon, 26 Nov 2012 20:50:31 +0000 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) From: Jim Jagielski In-Reply-To: <50B3D0CC.4030308@pobox.com> Date: Mon, 26 Nov 2012 15:50:28 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <2CB83305-625F-4830-90DA-88B8290021D1@jaguNET.com> References: <50B3C4DF.8020206@pobox.com> <83619CA6-4E7B-457A-864F-E1A7F6D1BF27@jaguNET.com> <50B3D0CC.4030308@pobox.com> To: users@httpd.apache.org X-Mailer: Apple Mail (2.1499) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1353963031; bh=5PwmF416iH/Dvs25IMP3UC0kgDaBOYJmg8O3htOk28s=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=OocaqqjcnwUEyyJo+Tl5qW1sjaiWvUuDGSqCMiTu8kouHum8qYX6IqRD7VBuUHqrm kZZjq0p4qpIC8aKMSFUuoe+B8mVf3vTPUUklPLhk8zcRRXzTJVN2otor7SnNBT17pe qdL5R6/fNt2/Qrh4W883nieprpmV4eWp2Alai28U2jiGXIPS3gZhHHmFnn39aSqMXK Dq5eeCXuChwMoV/YEvMdbpylw7euEVIU6r7LIs2uCE93q7nc9qiDjxujkpDuljdqh9 Nx51Br+PUL8BiDtmd90a7vJyw0X8a8rvCGIXOTZXsObY9ICDZP9b9zSqQ+cqhagBCJ bayOdP/qHN3wQ== X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Httpd vhosts and ProxyPass/ProxyPassReverse and AJP - am I on crack? Your use of ProxyPassReverse is wrong... = http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse On Nov 26, 2012, at 3:27 PM, Dave Shevett wrote: > On 11/26/12 3:12 PM, Jim Jagielski wrote: > # Working, live production host: > ProxyPass=20 > /a/ > ajp://10.211.42.48:8009/ > ProxyPassReverse=20 > /a/ http://FOO.com/ >=20 >=20 > # app test host > ProxyPass=20 > /c/ > ajp://10.122.95.146:8009/ > ProxyPassReverse=20 > /c/ http://FOO.com/ >=20 >> The first Proxy configuration is working correctly. Requests coming = into /a/ go to the server on 10.211.42.48. No worries. But hitting the = second address will end me back up at /a/ - I'm guessing because there = are essentially two ProxyPassReverse's for the same url (http://FOO.com >> ). >>=20 >>=20 >> Do you mean that >>=20 >> =20 >> http://FOO.com/a/ >> goes to ajp://10.211.42.48:8009/ >>=20 >> But >>=20 >> =20 >> http://FOO.com/c/ >> DOES NOT go to ajp://10.122.95.146:8009/ >>=20 >> but instead goes to ajp://10.211.42.48:8009/ ?? >>=20 >=20 > Not exactly. The request to http://FOO.com/c/ initially goes to = ajp://10.122.95.146:8009/ >=20 > That host gives a redirect ('not logged in'), and redirects to = HomePage.action. But the redirect as received by the browser is /a/, = not /c/, I assume due to the proxypassreverse earlier in the vhost = definition. >=20 >=20 > --=20 > Dave Shevett >=20 > shevett@pobox.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org