jaswope/rack-reverse-proxy — Issue #11: :preserve_host semantics is upside-down
Author: joliss
Created: 2012-01-31 23:14:08+00:00
State: open

:preserve_host, when set to true, causes the Host header to be overridden, not to be preserved, unlike Apache's [ProxyPreserveHost](http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypreservehost), which has the semantics you would expect.

In other words, given Rack app A reverse-proxying to B, with :preserve_host => false, it will send "Host: A", and with :preserve_host => true, it will send "Host: B".

IMO it should be the other way around, i.e. false sends B and true sends A.

The default should probably be to not preserve the host, like Apache. (I'm not sure about the current default...)