couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
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.
http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy?action=diff&rev1=15&rev2=16

--------------------------------------------------

     ErrorLog "logs/couchdb.localhost-error_log"
     CustomLog "logs/couchdb.localhost-access_log" common
  </VirtualHost>
+ }}}
+ 
+ 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:

Mime
View raw message