domain based forwarding for HTTP
Use nginx to do this.
frp's STCP
You may want to consider secure tunnels like wireguard or zerotier.