Subdomain redirection (NAT) to the local IP address.

Please help me redirect (NAT) the connection from outside HTTP/HTTPS so that after entering the subdomain, the connection will be redirected to a specific IP address and port in the local network.

WAN->http://test1.domain.com:80–>LAN->192.168.88.101:91
WAN->http://test2.domain.com:80–>LAN->192.168.88.102:92
WAN->https://test3.domain.com:443–>LAN->192.168.88.103:93
WAN->https://test4.domain.com:443–>LAN->192.168.88.104:94

Is it possible? Is it possible to achieve the effect using Layer7 and Web Proxy?

You need reverse proxy for that like nginx or haproxy, you can do port forwarding on port 80 to a local reverse proxy from there handle the routing logic