A, Tomcat ready
In the webapps directory under the 8080 and 8081 two Tomcat ports were established love file, and add love.html file, write their own port number.
Second, modify Nginx configuration file, and restart Nginx
Third, the test
Two pages cycles occur, Success.
Fourth, the server allocation strategy
Polling (default)
Each request individually assigned to a different time order back-end server, if the back-end server is down, can be automatically removed.
2. weight
weight represents the weight defaults to 1, higher weights are assigned clients more
3. ip_hash
Each access request assigned by ip hash results, so each guest access to a fixed back-end server
4. fair (third party)
By the response time of the allocation request to the backend server, a short response time priority allocation.