Nginx redirect uri for home assistant server to abc.com/hass

Simply trying to get nginx to proxy requests for abc.com/hass to abc.com. I run several servers on a single local node and do not want to consume the “/” URI namespace otherwise my other server apps cannot be accessed. E.g.:

10.19.49.2 (my internal server all apps accessed via http://10.19.49.2/uri where uri is as below)
       |
       +----- home assistant server at /hass
       |
       |
       +------homebrew app at /db
       |
       |
       L______ another app at /store

abc.com (my public server)
       |
       L____ nginx server proxy https://abc.com/hass to 10.19.49.2/hass  (or trying to!!)

So clearly forcing me to use / for home assistant is going to make things problematic for me.

I’ve read on the forums that this is not possible with HA due to hardcoding of base URIs, for example when requesting abc.com running a HA instance, HA responds with abc.com/states to query entity states and of course that’s going to confuse things .if the full original request was https://abc.com/hass - nginx proxy will get confused.
Apparently the answer is to use subdomains, such as buy a domain and then create a subdomain like hass.abc.com and use nginx to proxy that.

I don’t understand nginx in great deal, or how http works, but looking at nginx help docs it seems that it can do quite a lot and I’ve also heard that http hosts and URIs can be “spoofed”. So why is it not possible to simply use nginx to remove the /hass from https://abc.com/hass on the incoming request and proxy it to my internal server? Can someone explain in laymen terms please.

experts will know probably that this isnt working in my nginx site-enabled default file

  location /hass {
        proxy_pass http://10.19.49.2:8123/;   #-- trailing / strips rest of URI (i.e. /hass)
        proxy_set_header Host $host;
        proxy_redirect http:// https://;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }