nginx + php-fpm 環境を Docker で構築する時に参考にした記事
シンプルな構成を作ってくれている方がいたので下記リポジトリからクローンする
https://github.com/mochizukikotaro/docker-nginx-phpfpm/tree/simple
nginx の設定は公式を参考に都度、読んでいけば(今の所は)何とかなってる。
よく読むページは以下の4つ。
公式マニュアル(コア関連)
http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files
公式マニュアル(ディレクティブ)
http://nginx.org/en/docs/dirindex.html
公式マニュアル(環境変数)
http://nginx.org/en/docs/varindex.html
公式マニュアル(FastCGI関連)
http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html