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 C735A119AC for ; Wed, 11 Jun 2014 12:52:18 +0000 (UTC) Received: (qmail 8757 invoked by uid 500); 11 Jun 2014 12:52:18 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 8684 invoked by uid 500); 11 Jun 2014 12:52:18 -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 8674 invoked by uid 99); 11 Jun 2014 12:52:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2014 12:52:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [76.96.30.17] (HELO qmta10.emeryville.ca.mail.comcast.net) (76.96.30.17) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2014 12:52:12 +0000 Received: from omta19.emeryville.ca.mail.comcast.net ([76.96.30.76]) by qmta10.emeryville.ca.mail.comcast.net with comcast id D0ki1o0041eYJf8AA0rsmX; Wed, 11 Jun 2014 12:51:52 +0000 Received: from [192.168.199.10] ([69.251.80.74]) by omta19.emeryville.ca.mail.comcast.net with comcast id D0rq1o0051cCKD9010rrpb; Wed, 11 Jun 2014 12:51:51 +0000 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: [users@httpd] Preserve protocol in httpd proxy From: Jim Jagielski In-Reply-To: <6FF4EBA7-866D-4D76-A10D-3D04B896EE87@jaguNET.com> Date: Wed, 11 Jun 2014 08:51:48 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <984C558A-5120-4B72-A40A-F59BD13F50D6@jaguNET.com> <5388DECA.6090802@apache.org> <6FF4EBA7-866D-4D76-A10D-3D04B896EE87@jaguNET.com> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.1878.2) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1402491112; bh=PpawrPmxftHVaVFjhlypGVU6PfhTVuZd3OIpyYvzhMM=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=b1ZsqzGKJWCXpysdnxCmDbf8BludECKVLEGfA9cZu0GM2W8Fl0jpIZZY4W/ATQEbZ ZeqQVZEiUPdIAIuMLGWI37+CBOfvc/wY9O1iKTscr0JK6nE0R0JpCCjpR6gWsnR+/Z NDY3OKh6MAxRqcj+o0XIaTmG2ieADIb3Vq2OggZnKZsqskBLmDPT5uAEtRgLWqsEX8 hYXH3UddJG8iV41jokEvS3aTY3N9jVwnvgGNBc9mx3vXZM8uuQXbhuTwZuXvntKiVl X5aCLyPxs38tpsgPfC77GmyXvqKI+VV3pjuT4cbYKtQGfjQcdsDwoZFFnSJpZfttsd CRlrJboMS3ZAw== X-Virus-Checked: Checked by ClamAV on apache.org I have an idea which could be pretty simple to implement and not add yet-another ProxyPass parameter. A special scheme. Ideally, something like ProxyPass / *://foo.example.com/ would be nice, with the special scheme '*' saying "use the scheme of the request", but apr_uri_parse barfs on that. So how about 'passthru' as the special scheme? Or maybe just 'pass', 'scheme' or even 'glob' ?? On May 31, 2014, at 11:53 AM, Jim Jagielski wrote: > I'm sure we can do w/ mod_rewrite... it's just that > it's soo expensive :) >=20 > On May 30, 2014, at 3:40 PM, Ruediger Pluem wrote: >=20 >>=20 >>=20 >> Jim Jagielski wrote: >>> Off the top of my head, I think we would need to >>> add another proxypass option. >>=20 >> Have you tried the following? >>=20 >> RewriteEngine On >> RewriteCond %{HTTP:Upgrade} =3DWebSocket [NC,NV] >> RewriteRule ^/(.*) ws://my.backend:8080/$1 [P] >> RewriteRule ^/(.*) http://my.backend:8080/$1 [P] >>=20 >>=20 >>=20 >> Regards >>=20 >> R=FCdiger >>=20 >=20