As the title states, can the configuration of Nginx Upstream be set to the external network IP across computer rooms?
It's okay to test it yourself, but I don't know what problems will occur in the actual environment.
When Nginx upsteam is used as a front-end proxy, it uses a long connection, which may cause problems due to poor network or something.
Can anyone with experience or experience in this field please give me an answer?
My website is across computer rooms, one nginx is used as a reverse proxy, and the real web server is in another computer room
The nginx configuration for reverse proxy is roughly as follows:
This deployment method is greatly affected by the quality of the network in the computer room. If the network in the computer room is strong, it will be fine. nginx itself has not caused any trouble.
In fact, varnish should be more suitable for this than nginx. However, I am not familiar with varnish, so I just use nginx.
Properly.