Nginxの設定
こんにちは。kikeda1104です。 前回の記事で、Nginxのディレクティブの一覧を作りました。それを参考にしながら公開する目的で、 Nginxの設定を進めていきたいと思います。
システムの前提
Nginx
server { listen 80 default deferred; client_max_body_size 4G; server_name example.com; keepalive_timeout 5; upstream app_server { server unix:/tmp/unicorn.sock fail_timeout=0; } location / { root /myapp/public; } error_page 404 /404.html; location = /404.html { root /usr/share/nginx/html; } }
参考:
unicorn/nginx.conf at master · defunkt/unicorn · GitHub
https://github.com/defunkt/unicorn/blob/master/examples/nginx.conf
以上。