Hello,

This is an extract of my frontend configuration working perfectly on 2.0.11.

frontend wwws
        bind 0.0.0.0:443 ssl crt /etc/haproxy/ssl/server.pem alpn
h2,http/1.1
        mode http
        acl is_dev_qd hdr(host) -i dev.q.d dev.qs.d
        acl is_qd hdr(host) -i q.d qs.d www.q.d www.qs.d
        http-request replace-uri ^/PPDSlide/(.*) /d3/PPDSlide/\1 if
is_dev_qd
        http-request replace-uri ^/PPDSlide/(.*) /p3/PPDSlide/\1 if is_qd
        ....

URLs like https://q.d/PPDSlide/testfile are correctly rewritten to
https://q.d/p3/PPDSlide/testfile and forwarded to the backend.

Once I switched to 2.1.1, haproxy no longer rewrites the URI and the
URIs remains unchanged while forwarded to the backend. I had to
downgrade to have the usual behaviour.

Is it a bug or something changed in normal haproxy behaviour with 2.1
release ?

-- 
Best regards,
Artur


Reply via email to