Welcome! Log In Create A New Profile


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.



after prepend to add /bar:


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: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready