The HTTP Server
The HTTP server handles the connections with the client and forwards all the requests to the Node server. In some way, it is a kind of proxy. Currently, there are two main HTTP servers on the market that were used widely in production: Apache and Nginx, both can be used to server Node applications. However, in this book, we will cover Nginx. The main reason for this decision is its simplicity and performance and it is smaller than Apache.
To install Nginx, use apt-get
:
$ sudo apt-get install nginx [sudo] password for abiee: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: nginx-common nginx-core Suggested packages: fcgiwrap nginx-doc The following ...
Get Mastering Backbone.js now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.