I’m trying to rewrite the contents of a response from an HTTP backend server. It’s an Icecast server so it answers on HTTP/1.0.
I would like to replace any occurrence of “http://that.server.com:8787/” with “https://that.server.com” (removing the trailing port and changing the scheme)
So my rspirep line looks like this :
rspirep http://that.server.com:8787(.*) https://that.server.com\1
… and all I get is the exact same original content :
Tried with both rsprep and rspirep in case one of them is misbehaving, no luck.
Is there something I’m missing ?