We successfully deployed and served the first website with NGINX, but we still don’t know why things work out of the box. We’ll fix that by going through the default NGINX configuration in detail. We’ll see how static sites are served and learn about various directives we can use in our configuration too. Once we understand that, we’ll move on and learn how to use NGINX as a proxy server.In most configurations today, Ruby and Python application servers sit behind a reverse proxy server. The reverse proxy handles TLS encryption, serves static assets, or protects the application against slow clients. The reason for that is twofold. Servers like NGINX are far more optimized to do these tasks efficiently. And application servers can stay lighter, focusing on serving the application.