Configure Nginx as a web server and reverse proxy for Nodejs application on AWS Ubuntu 16.04 server
Introduction
Nginx was created in response to C10k challenge for handling at least 10,000 simultaneous client connections on a single server. Nginx uses asynchronous, event-driven architecture to handle these massive amount of connections. This architecture makes handling high and fluctuating loads much more predictable in terms of RAM usage, CPU usage, and latency.
Nginx can be used as web server, reverse proxy, load balancer and HTTP cache.
Image Credits
Installing Nginx on AWS ec2 instance with Ubuntu 16.04
$ sudo apt-get update && sudo apt-get upgrade -y
$ sudo apt-get install nginx -y
Setup Nginx