We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1665480 commit 77a21eeCopy full SHA for 77a21ee
README.rdoc
@@ -19,9 +19,10 @@ Below is an example for configuring the middleware:
19
require 'rack/reverse_proxy'
20
21
use Rack::ReverseProxy do
22
- # Forward the path /test* to http://example.com/test*
+ # Set :preserve_host to true globally (default is true already)
23
reverse_proxy_options :preserve_host => true
24
-
+
25
+ # Forward the path /test* to http://example.com/test*
26
reverse_proxy '/test', 'http://example.com/'
27
28
# Forward the path /foo/* to http://example.com/bar/*
0 commit comments