Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 75969 invoked from network); 6 Sep 2010 18:40:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Sep 2010 18:40:01 -0000 Received: (qmail 40157 invoked by uid 500); 6 Sep 2010 18:40:01 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 40040 invoked by uid 500); 6 Sep 2010 18:40:00 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 40033 invoked by uid 500); 6 Sep 2010 18:40:00 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 40030 invoked by uid 99); 6 Sep 2010 18:40:00 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Sep 2010 18:39:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Sep 2010 18:39:42 +0000 Received: from eosnew.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id EAB2F201; Mon, 6 Sep 2010 18:39:13 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Mon, 06 Sep 2010 18:39:13 -0000 Message-ID: <20100906183913.95315.17403@eosnew.apache.org> Subject: =?utf-8?q?=5BCouchdb_Wiki=5D_Update_of_=22Apache=5FAs=5Fa=5FReverse=5FPro?= =?utf-8?q?xy=22_by_MichaelStapelberg?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for c= hange notification. The "Apache_As_a_Reverse_Proxy" page has been changed by MichaelStapelberg. http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy?action=3Ddiff&rev1= =3D15&rev2=3D16 -------------------------------------------------- ErrorLog "logs/couchdb.localhost-error_log" CustomLog "logs/couchdb.localhost-access_log" common + }}} + = + Note from Michael Stapelberg for users of an SSL-enabled vhost which prox= ies requests to a non-SSL CouchDB: + When doing a replication, CouchDB will sometimes send HTTP 301 Moved Perm= anently replies. Normally, the ProxyPassReverse directive would rewrite suc= h headers (the Location header). However, CouchDB handles X-Forwarded-Host = and redirects to the Host to which the request was sent (the Apache Proxy i= n this case). Therefore, Apaches ProxyPassReverse directive will not trigge= r and you can end up getting a redirect to an HTTP URL while you use HTTPS.= To fix this, set [httpd] x_forwarded_host to something invalid: + {{{ + [httpd] + x_forwarded_host =3D FNORD }}} = Note from Wout Mertens: