I encountered a problem when deploying a project recently. Alibaba Cloud parsed it to a public IP, and forwarded it by nginx of the public IP. However, when forwarding, the project is separated from the front and back ends and needs to be resolved to the xxx directory of the remote server, which is not easy to solve through an nginx forwarding. It is forwarded to the nginx port of the remote server through the first nginx, and it can be forwarded locally by the nginx of the remote server.
2. Steps
1. For example, the internal network ip of the remote server is 192.168.10.11, and the nginx of the ip public network ip server is forwarded to port 80 (nginx port) of 192.168.10.11:.