Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A82A2E5E for ; Tue, 3 May 2011 19:49:23 +0000 (UTC) Received: (qmail 48985 invoked by uid 500); 3 May 2011 19:49:23 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 48940 invoked by uid 500); 3 May 2011 19:49:22 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 48932 invoked by uid 99); 3 May 2011 19:49:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 19:49:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of info@bnoordhuis.nl designates 209.85.161.173 as permitted sender) Received: from [209.85.161.173] (HELO mail-gx0-f173.google.com) (209.85.161.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 19:49:15 +0000 Received: by gxk26 with SMTP id 26so211463gxk.18 for ; Tue, 03 May 2011 12:48:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.66.40 with SMTP id g28mr274899yhd.422.1304452134310; Tue, 03 May 2011 12:48:54 -0700 (PDT) Received: by 10.147.182.7 with HTTP; Tue, 3 May 2011 12:48:53 -0700 (PDT) X-Originating-IP: [87.214.96.125] In-Reply-To: <4DC05312.7050701@mardys.de> References: <4DBA7664.6000906@mardys.de> <4DBEFD39.6040509@mardys.de> <4DC05312.7050701@mardys.de> Date: Tue, 3 May 2011 21:48:53 +0200 Message-ID: Subject: Re: mod_gnutls and mod_proxy (TLS termination) From: Ben Noordhuis To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, May 3, 2011 at 21:10, Hardy Griech wrote: > On 03.05.2011 00:13, Ben Noordhuis wrote: >> >> On Mon, May 2, 2011 at 20:51, Hardy Griech =A0wrote: >>> >>> Now my concern is, how can I reliably catch the condition that the >>> connection has been initiated by mod_proxy. =A0Any ideas? >> >> r->proxyreq !=3D PROXYREQ_NONE? Does 'initiated' mean 'request from an >> external reverse proxy' or 'request handled by mod_proxy'? > > Sorry, I forgot to mention that the code is in the pre-connection hook. = =A0So > no proxyreq available :-( > > Also my previous patch does not work, if the destination server is on > another machine. > > Currently I'm checking (c->sbh =3D=3D NULL) to detect the mod_proxy reque= st > (yes, I meant a mod_proxy request). > > In mod_ssl they seem to have a similar problem with mod_proxy: mod_proxy > calls some mod_ssl functions (ssl_proxy_enable() and ssl_engine_disable()= ) > to signal a request handled by mod_proxy. > > I've tried to implement also these two functions - without success, they = are > never called also I've tried to register them just like mod_ssl does > (mod_ssl is not loaded BTW). Hardy, when and where are you registering your optional functions? mod_proxy looks them up in the post_config phase so they must have been registered by then. register_hooks is a good place for it. Can you perhaps post or link to your code?