Take content from specific URL and can see it with specific frontend URL

ok first post here, doing a lot of searching, testing some solutions and nothing working for me.

Here what I try to do :

I have one server (server1.com/bar) and the thing I want is when the user type : userurl.com/foo/bar they see the content of : server1.com/bar

I use haproxy 2.4.0

I try with : http-request replace-header , http-request replace-path

thank you for your help and yes iā€™m a beginner with haproxy :slight_smile:

It is a common requirement, set the following line before sending the content to the backend, it should work:

http-request set-path ā€œ%[path,regsub(^/foo/,/)]ā€