On May 11, 2017 12:29 AM, "Oleg Kalnichevski" <[email protected]> wrote:
On Thu, 2017-05-11 at 00:02 -0700, Gary Gregory wrote: > Hi All, > > (I am not proposing to change NHttpReverseProxy but my code in a > descendant > of NHttpReverseProxy). > > How would I change the path of a request's URI before it is forwarded > to > the origin server? > This entirely depends on what kind requests the origin server expects. If your proxy expects absolute request URIs but the origin does relative ones then rewrite the request URI as relative and generate Host header with the authority components of the original URI. Let's the proxy receives /foo/bar and the origin server wants /beep/bop/foo/bar Does your suggestion apply? Gary Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
