Rewrite rule that alters content results

Is there a rewrite statement that I can use to rewrite the html content
that is being sent back to the client? Some of the content has urls in
it and they have the wrong port I would like to change it as it’s being
sent back to the client.


Posted at Nginx Forum: