Help me to Route path configuration

I have two mongo-express services in the internal network.
I want to provide access to them from outside via haproxy using route path.

created the following configuration


#SSL
frontend main-ssl
bind *:443 ssl crt /etc/haproxy/certs/
option httplog

acl URL_mexpress1 path /one-me
acl URL_mexpress1 path_beg /one-me/

acl URL_mexpress2 path /two-me
acl URL_mexpress2 path_beg /two-me/

use_backend mexpress1 if URL_mexpress1
use_backend mexpress2 if URL_mexpress2

backend mexpress1
http-request replace-path /one-me(/)?(.*) /\2
server wl01-priv-vm 10.16.24.2:8081 check

backend mexpress2
http-request replace-path /two-me(/)?(.*) /\2
server ml02-priv-vm 10.16.24.18:8081 check


but as a result I get an error when receiving content
this is log from backend mexpress2

[24/Feb/2025:14:59:25.295] main-ssl~ mexpress2/ml02-priv-vm 0/0/2/2/4 401 195 - - ---- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/two-me HTTP/2.0”
[24/Feb/2025:14:59:36.348] main-ssl~ mexpress2/ml02-priv-vm 0/0/2/49/52 200 9461 - - ---- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/two-me HTTP/2.0”
[24/Feb/2025:14:59:36.466] main-ssl~ main-ssl/ -1/-1/-1/-1/0 503 216 - - SC-- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/public/css/bootstrap.min.css HTTP/2.0”
[24/Feb/2025:14:59:36.467] main-ssl~ main-ssl/ -1/-1/-1/-1/0 503 216 - - SC-- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/public/css/bootstrap-theme.min.css HTTP/2.0”
[24/Feb/2025:14:59:36.467] main-ssl~ main-ssl/ -1/-1/-1/-1/0 503 216 - - SC-- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/public/css/style.css HTTP/2.0”
[24/Feb/2025:14:59:36.468] main-ssl~ main-ssl/ -1/-1/-1/-1/0 503 216 - - SC-- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/public/vendor-93f5fc3ae20e0dfd68cb.min.js HTTP/2.0”
[24/Feb/2025:14:59:36.468] main-ssl~ main-ssl/ -1/-1/-1/-1/0 503 216 - - SC-- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/public/img/mongo-express-logo.png HTTP/2.0”
[24/Feb/2025:14:59:36.468] main-ssl~ main-ssl/ -1/-1/-1/-1/0 503 216 - - SC-- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/public/img/gears.gif HTTP/2.0”
[24/Feb/2025:14:59:36.468] main-ssl~ main-ssl/ -1/-1/-1/-1/0 503 216 - - SC-- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/public/index-56afe067afbbbde795be.min.js HTTP/2.0”
[24/Feb/2025:14:59:36.532] main-ssl~ main-ssl/ -1/-1/-1/-1/0 503 216 - - SC-- 1/1/0/0/0 0/0 “GET https://lb02-stage.cosupport.ai/favicon.ico HTTP/2.0”

from the backend mexpress1 side I also get code 503

How can I fix the configuration so that the /public path is not blocked?