I am in the process of moving Sun Iplanet web servers to Nginx. Its a big job and one thing that has me stumped is the PathPrepend. This adds to the beginning of the URL coming from a proxied upstream server.
eg..
/foobar/foo
after prepend to add /bar:
/bar/foobar/foo
What is the best way to do this with Nginx? I have it currently working with a rewrite shown below.
rewrite (?i)^/foobar/$ "https://domain.com/bar$uri/" last;