* Simulation (with a domain name to get different server corresponding)
This domain name is simulated by modifying the local host file
Modifies the IP address of the domain name specified by the host file. Host file location: C:\Windows\System32\drivers\etc
* Brief introduction of reverse proxy concept: The reverse proxy server is a reference on the service side. Decide which server provides the service.
* Reverse Proxy
used here One virtual machine installs one Nginx multiple servers (using Tomcat) to simulate
1, upload tomcat, and modify the ports to 8080 and 8081 respectively
* Configure Nginx
* Test
Modify the Tomcat welcome page to differentiate unused server responses
Start Tomcat and Tomcat2, and start Nginx
Browser input before simulation set domain name (test.baidu.com) Carriage return
Click Refresh will appear at a certain chance (this is the modified Tomcat welcome page)
* Load Balancing
Load balancing and reverse proxies are just a few of the nginx.conf that add weight to the server.
Nginx reverse proxy and load balancer (analog)