Configure bitwarden behind haproxy?

Hello,

i’m trying to configure bitwarden behind my haproxy to be able to use it from outside without vpn.

I configure the certificate in bitwarden with my domain and it’s working (if i connecting to the local ip, i can see the certificate).

Actually i would to configure it like this : my.domain.com/bitwarden

I configured like this :

frontend nas.xxx.be
    bind *:443 ssl crt /etc/ssl/private/haproxy_cert.pem
    mode http
    acl url_bitwarden path_beg /bitwarden
    use_backend bitwarden if url_bitwarden

backend bitwarden
    mode http
    balance roundrobin
    server bitwarden 192.168.0.123:443

but when i going in the url i have

400 Bad Request

The plain HTTP request was sent to HTTPS portnginx

Any help please? Thank you!

Hello,

actually when i trying to go to https://my.domain.com/bitwarden, the url changing to ttps://my.domain.com/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/bitwarden/

With error

400 Bad Request

The plain HTTP request was sent to HTTPS portnginx

Any idea? Thank you