Hiding sub path

Any solution to this? I have same problem and I think is pretty easy with nginx or apache: Proxy_pass path prefix docker swarm labels same as nginx or apache