0

I have seen several web service architecture, and all of them is nginx in the front and apache in the back, I just wanna know why this?

I know nginx is good at handle high concurrency request and load balancing, I can make peace of the nginx as front thing, but why the backend is apache?

Chenglu
  • 1,757
  • 2
  • 14
  • 23

1 Answers1

1

Possibly some modules that apache has but nginx does not have. Then you would need apache in your stack somewhere, quite fittingly at the backend, just to do the tasks those modules do.

Edit
Even if some equivalent modules do exist, the event-driven nature of nginx may also be detrimental in some scenarios; see this answer for example.

Community
  • 1
  • 1
r.v
  • 4,697
  • 6
  • 35
  • 57