Разберемся в rewrite и try_files, а так же затронем gzip, stub_status, if с регуляркой и запроксируем веб-сокеты. Возможно, ролик будет сложноват, но надеюсь, что не очень.
https://nginx.org/en/docs/http/ngx_ht...
https://www.nginx.com/resources/wiki/...
https://nginx.org/en/docs/http/ngx_ht...
http://nginx.org/en/docs/stream/ngx_s...
https://nginx.org/en/docs/stream/ngx_...
http://nginx.org/en/docs/http/ngx_htt...
https://docs.nginx.com/nginx/admin-gu...
https://stackoverflow.com/questions/3...
https://www.nginx.com/blog/websocket-...
https://www.nginx.com/blog/creating-n...
Github: https://github.com/ns3777k/nginx-youtube
YouTube: / @eazy-dev
Telegram: https://t.me/eazydev_youtube
VK: https://vk.com/eazydevru
Rutube: https://rutube.ru/channel/13678800/