# Episode 124 - NginX

> Episode of [The Backend Engineering Show with Hussein Nasser](https://podistic.com/podcast/the-backend-engineering-show-with-hussein-nasser.md) · Published January 20, 2020 · Duration 1:26:53

- **Listen on Podistic:** https://podistic.com/episode/episode-124-nginx
- **Audio:** https://traffic.megaphone.fm/APO6822085966.mp3 (audio/mpeg)

## About this episode

**NginX** is an open source [web server](https://en.m.wikipedia.org/wiki/Web_server) written in C and can also be used as a [reverse proxy](https://en.m.wikipedia.org/wiki/Reverse_proxy) and a load balancer.

In this video, I want to go through the following topics in NginX

*   What is NginX? 2:25
*   Current \& Desired Architecture 4:58
*   Layer 4 and Layer 7 Proxying in Nginx 8:40
*   Example 10:25
    *   Install Nginx (mac) 13:30
    *   Nginx as a Web Server 15:00 (webserver.conf)
        *   Static context location root 20:00
        *   regular expression 27:00
        *   proxy pass 30:30
    *   Nginx as a Layer 7 Proxy 33:30
        *   Proxy to 4 backend NodeJS services (docker) 37:00
        *   IP\_Hash load balaning 43:00
        *   Split load to multiple backends (app1/app2) 46:00
        *   Block certain requests (/admin) 49:00
    *   NGINX as a Layer 4 Proxy 51:30
    *   Create DNS record 1:01:08
    *   Enable HTTPS on Nginx (lets encrypt) 1:05:08
    *   Enable TLS 1.3 on Nginx 1:14:00
    *   Enable HTTP/2 on NGINX 1:17:10
*   Summary 1:20:10

Cards

3:40 proxy vs reverse proxy [https://www.youtube.com/watch?v=ozhe\_\_GdWC8\&t=1s](https://www.youtube.com/watch?v=ozhe__GdWC8\&t=1s)

8:50 OSI Model [https://www.youtube.com/watch?v=7IS7gigunyI](https://www.youtube.com/watch?v=7IS7gigunyI)

10:00 L4 vs l7 load balancer [https://www.youtube.com/watch?v=aKMLgFVxZYk](https://www.youtube.com/watch?v=aKMLgFVxZYk)

34:00 spin up docker app [https://www.youtube.com/watch?v=vmSMrQ8Ev9w\&t=14s](https://www.youtube.com/watch?v=vmSMrQ8Ev9w\&t=14s)

44:26 stateless vs stateful [https://www.youtube.com/watch?v=nFPzI\_Qg3FU](https://www.youtube.com/watch?v=nFPzI_Qg3FU)

1:16:30 TLS video [https://www.youtube.com/watch?v=AlE5X1NlHgg\&t=8s](https://www.youtube.com/watch?v=AlE5X1NlHgg\&t=8s)
