Prepare to use an nginx to configure load balancing and forward PHP to several apache hosts for running
So it doesn’t matter if the nginx used for load balancing is configured differently? Because it only load forwards?
黄舟2017-05-16 17:01:59
No, nginx is equivalent to the front-end scheduler. All requests must go through nginx and forwarded to the back-end server. Whether it is lvs-nat (lvs-nat forwards the data returned by the back-end apache after processing, it still has to be sent to the client through nginx. end, then the nginx front-end scheduler has the largest amount of access, or lvs-dr (direct routing), or nginx-upstream
.