reverse_proxy_plug
reverse_proxy_plug copied to clipboard
Add preserve request path option
trafficstars
Add an option :preserve_request_path
reverse_proxy_plug currently maps url paths so that the original directory at
which the route is mounted is not passed over to the destination server
This new option preserve_request_path allows for the original directory to be
passed back so that the destination server receives the full original request
path
For example, if the option is set to true and ReverseProxyPlug were mounted at
a route '/abc' and a request came in as '/abc/123', the destination server
would be requested '/abc/123' and not '/123'