search

Home  >  Q&A  >  body text

apache - Does it matter if the nginx host configuration for load balancing is slightly different?

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?

習慣沉默習慣沉默2747 days ago563

reply all(1)I'll reply

  • 黄舟

    黄舟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

    .

    reply
    0
  • Cancelreply