replace string on proxy request

Igor Sysoev igor at
Mon Apr 19 21:19:45 MSD 2010

On Mon, Apr 19, 2010 at 12:55:10PM -0400, Alberto wrote:

> We are using nginx as a reverse proxy, and we want to modify some strings on the body response.
> The problem is this one:
> -> proxied to ->
> We get into the body response links like:
> How can we replace by

You may replace single string using


However, it's better to configure backend to use "".

Igor Sysoev

More information about the nginx mailing list