My marathon-lb configuration:
"labels": {
"HAPROXY_GROUP": "external",
"HAPROXY_0_VHOST": "test.com",
"HAPROXY_0_MODE": "http"
}
I want it route only requests like test.com/12345
to internal endpoint
/results?q=123
. How to achieve that?
P.S. Nginx rule for the same purpose looks like:
location ~* /[\w\-]+?$ {
proxy_pass http://127.0.0.1:8094;
rewrite ^/([\w\-]+?)$ //results?q=$1? break;
}