E
E
Ermolaev_ID2020-06-01 14:20:44
Nginx
Ermolaev_ID, 2020-06-01 14:20:44

Why is Nginx/Apache needed if there is node.JS?

I understand that node.js is a platform, but also a web server? The site can be run on node, but then why do you need apache or nginx? Is it really possible to compare them? When to use node and when to use another (nginx, apache)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
origami1024, 2020-06-01
@origami1024

You can also implement all the features of nginx in the node yourself.
Putting nginx in front of your node is easier and more reliable.

S
Sergey Gornostaev, 2020-06-01
@sergey-gornostaev

To put it bluntly and simply, Node.js serves requests to the API, and Nginx distributes static, usually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question