Welcome! Log In Create A New Profile

Advanced

Sun Iplanet Migration - Path Prepend

Posted by parksie 
Sun Iplanet Migration - Path Prepend
October 30, 2013 12:07AM
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;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 132
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready