couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "Apache_As_a_Reverse_Proxy" by MichaelStapelberg
Date Mon, 06 Sep 2010 18:39:13 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Apache_As_a_Reverse_Proxy" page has been changed by MichaelStapelberg.


     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 proxies requests to
a non-SSL CouchDB:
+ When doing a replication, CouchDB will sometimes send HTTP 301 Moved Permanently replies.
Normally, the ProxyPassReverse directive would rewrite such headers (the Location header).
However, CouchDB handles X-Forwarded-Host and redirects to the Host to which the request was
sent (the Apache Proxy in this case). Therefore, Apaches ProxyPassReverse directive will not
trigger 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 = FNORD
  Note from Wout Mertens:

View raw message