🌍Nginx
Also known as Engine X, Nginx Web Server
A fast, free web server. It can also stand in front of your apps.
Think of it like
It is like a fast waiter. He can serve lots of tables at once.
Example
Jack installs Nginx on his Ubuntu server. It sends his images straight from disk and passes every other request to his Node.js app.
Why it matters
It is one of the most used web servers in the world. Most server guides you meet will use it.
Definition
Example code
console
$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
$ sudo nginx -s reloadCommon mistake
Key takeaways
- 1Many at once. Built to handle lots of connections.
- 2Master and workers. One reads settings, the rest answer.
- 3Proxy too. It often stands in front of an app.