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 660CEA76 for ; Wed, 22 Aug 2012 11:24:49 +0000 (UTC) Received: (qmail 27559 invoked by uid 500); 22 Aug 2012 11:24:48 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 27144 invoked by uid 500); 22 Aug 2012 11:24:44 -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 27116 invoked by uid 99); 22 Aug 2012 11:24:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 11:24:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.20.83.52] (HELO gungnir.webthing.com) (209.20.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 11:24:34 +0000 Received: from [192.168.2.2] (walkham.free-online.co.uk [80.229.52.226]) by gungnir.webthing.com (Postfix) with ESMTPSA id C785BE8CA7 for ; Wed, 22 Aug 2012 11:24:13 +0000 (UTC) References: <5033E113.90009@aldan.algebra.com> <2245AD18-14C9-4F86-A652-E92856B5D107@webthing.com> In-Reply-To: Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Message-Id: <56F54E9D-2100-4A79-ABBE-0B45F0249FCE@webthing.com> Content-Transfer-Encoding: quoted-printable From: Nick Kew Subject: Re: Limitations of mod_dbd - single server per vhost Date: Wed, 22 Aug 2012 12:24:12 +0100 To: dev@httpd.apache.org X-Mailer: Apple Mail (2.1084) On 22 Aug 2012, at 11:43, Graham Leggett wrote: > On 22 Aug 2012, at 10:25 AM, Nick Kew wrote: >=20 >>> =46rom reading the module's documentation, it seems, a single vhost = can only use one DB-server (and only with one set of credentials): only = a single DBDriver and DBDParams is possible, for example. >>=20 >> That is by design: it is expected to meet most needs. >> If you wants more generality, go ahead and hack it. >=20 > This is one of the things I'd like see minimised in the server = implementation, the inclusion of arbitrary restrictions that later have = to be lifted. My words you quoted are somewhat oversimplified. The design didn't say "we'll only allow one backend ...", it was just a case of not = introducing extra complexity. The implementation needs object persistence, of the kind we have in the per-server configuration but not per-directory. That was the original design constraint. > I went through the proxy and cache implementations for httpd v2.4 and = removed all the per-virtual-host restrictions from all directives that = didn't require it, as too often I was approached saying "we can't use = the cache because feature X can only be set server wide and that breaks = site Y". Ideally directives should be per-directory or per-location, = unless there is a concrete reason otherwise. Indeed, I seem to recollect doing some of that for ProxyPass & family right back in the days of 2.0, when it was indeed a bug[1]! But that's = a different kettle of fish. > My rusty memory tells me that someone submitted a patch to fix this a = while ago? Now that you mention it, wasn't something committed? I think that whatever we have is either there in the code or excluded because there were more problems with it than anyone was prepared to fix. But ICBW. [1] starting with r231355 and http://marc.info/?l=3Dapache-httpd-dev&m=3D110726027118798&w=3D2 --=20 Nick Kew=