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

Uri rewrite , append

$
0
0

Hello everyone. I need to rewrite the incoming uri/path if it matches.
like if incoming path start with /test/*** then change this to /test/testing/**

Basically, we are appending /testing/into the path and keeping everything else before sending the request to the backend member.
ChatGPT gave me this one, but my proxy is not taking it.

http-request set-path %[path,regsub(^/test/(.*),/test/testing/\1)]

any help would be appreciated

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4832

Trending Articles



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