Permalink
Browse files

Adding new README

  • Loading branch information...
1 parent a11ab03 commit adca6293730a7efd9268e1d32bf7be848833328a @alanrubin committed Apr 2, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 README.rdoc
View
7 README.rdoc
@@ -25,6 +25,10 @@ Below is an example for configuring the middleware:
# Forward the path /test* to http://example.com/test*
reverse_proxy '/test', 'http://example.com/'
+ # Forward the path /barfoo* to http://example.com/barfoo* and
+ # rewrite body content with http://example.com/barfoo to http://yourlocalhost/barfoo
+ reverse_proxy '/barfoo', 'http://example.com/', :rewrite_content => true
+
# Forward the path /foo/* to http://example.com/bar/*
reverse_proxy /^\/foo(\/.*)$/, 'http://example.com/bar$1', :username => 'name', :password => 'basic_auth_secret'
end
@@ -38,8 +42,9 @@ reverse_proxy_options sets global options for all reverse proxies. Available opt
* :preserve_host Set to false to omit Host headers
* :username username for basic auth
* :password password for basic auth
+* :rewrite_content Set to true to rewrite matched url found in content with path
* :matching is a global only option, if set to :first the first matched url will be requested (no ambigous error). Default: :all.
-* :timeout seconds to timout the requests
+* :timeout seconds to timeout the requests
== Note on Patches/Pull Requests

0 comments on commit adca629

Please sign in to comment.