Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2544F9609 for ; Tue, 16 Dec 2014 13:00:17 +0000 (UTC) Received: (qmail 42635 invoked by uid 500); 16 Dec 2014 13:00:16 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 42570 invoked by uid 500); 16 Dec 2014 13:00:16 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 42560 invoked by uid 99); 16 Dec 2014 13:00:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 13:00:16 +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: error (nike.apache.org: encountered temporary error during SPF processing of domain of jim@jagunet.com) Received: from [96.114.154.167] (HELO resqmta-po-08v.sys.comcast.net) (96.114.154.167) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 12:59:47 +0000 Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-08v.sys.comcast.net with comcast id UCx21p00354zqzk01CxQyc; Tue, 16 Dec 2014 12:57:24 +0000 Received: from [192.168.199.10] ([69.251.80.74]) by resomta-po-11v.sys.comcast.net with comcast id UCxP1p0011cCKD901CxPcf; Tue, 16 Dec 2014 12:57:24 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: [PATCH] Balancers, VirtualHost and ProxyPass From: Jim Jagielski In-Reply-To: <54883BD5.9040307@redhat.com> Date: Tue, 16 Dec 2014 07:57:22 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <1B958BAC-71FB-4E48-9624-F462D1A2F813@jaguNET.com> References: <54883BD5.9040307@redhat.com> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.1993) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1418734644; bh=d5e+4dDKma1knUVLNxJW2oBfZrzo24JIZHN2zXkA+4s=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=OxfJFglb05Tvl8uZn1Ik1YevoE0J+H6VdFU6V4+hGFXj8YqGsH5XL1l2qRPj4vgM2 njFnm531Z6fFtOLX1OBvtNI9ZJ1M43hmCrRwOo8effWFuRSFbczwe4aNafljdrnkrZ kvGofR5m1laMMUE1KaDvcoJUQ8LxyYOTgFRN6T9X/riJ3Z3Lax7AF2PsnN3A9x/ya8 Z05ZQ2dWzFIYZ3Zum5GglmAe1+uu7o6/nAuogX3PqmqksRSYzL9gEsTu7zGcEAVju6 L/QI5GLERXt8YgvKOjMTq4pRNarGPbzCHd8EiXUlGqKwhd73UFmL/a5QJNivCqGFg3 +rXTWIDdDCitw== X-Virus-Checked: Checked by ClamAV on apache.org Isn't this already addressed/handled with the BalancerInherit = directive?? > On Dec 10, 2014, at 7:25 AM, Jan Kalu=C5=BEa = wrote: >=20 > Hi, >=20 > I've found out that following configuration does not work as expected: >=20 > > ... > > > ProxyPass / balancer://a stickysession=3DJSESSIONID|jsessionid > >=20 > In this case, two proxy_balancers are created. The first one in Proxy = section in the main config without stickysession and the second one in = the vhost section with stickysession set. >=20 > Because of merge_proxy_config behaviour, the one from the main config = is always preferred and therefore you cannot set stickysession (and = other options) this way. >=20 > Attached patch fixes that by changing the merge strategy for balancers = array to merge options set by ProxyPass. >=20 > I think we would need the same for proxy_worker too, but before I = spent afternoon working on it, I wanted to ask, do you think this is the = right way how to fix this? >=20 > Regards, > Jan Kaluza >