Proxy folder to inside server

Hi, I have one question (I’m pretty new to HAProxy so maybe the answer is very simple).
I have some servers inside with Nextcloud.
I wish to have the external address to them like https://mydomain.com/nc1, https://mydomain.com/nc2, https://mydomain.com/nc3 … .
The question is how to set this up HAProxy so the https://mydomain.com/nc1 to proxy to http://server1.com:8080. I also want the address in the client browser to stay with /nc1/ all the time.

/PelleH