You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/09/06 20:39:13 UTC

[Couchdb Wiki] Update of "Apache_As_a_Reverse_Proxy" by MichaelStapelberg

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: