So for the moment, I’m having a little issue, and I’m not sure if there’s a way to do this, or if this is very specific to how I’m trying to accomplish this.
I currently have a URL from an application I’m running behind a reverse proxy providing the following:
If you notice, theres an argument for param that is a local IP URL. Is there any way to, say, take out the 10.254.4.8 from that and change to the public IP of the server, even if I have to hard-code it into the rewrite?
You’ll want to rewrite with a regexp that captures the variable parts of the URL and write the target URL with the correct IP address.
If you include a substring check like if {uri} has 10.254.4.8, you’ll save your web server a few ticks of processing power running regex checks on all your requests.