Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4740

Rspirep / rsprep not triggering

$
0
0

@Hoggins wrote:

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 :
http://that.server.com:8787/some_uri

Tried with both rsprep and rspirep in case one of them is misbehaving, no luck.

Is there something I’m missing ?

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>