title: Still getting 413 Request Entity Too Large even after client_max_body_size 100M
body: <p>I'm using Rails and Nginx on Digital ocean and I've been trying to upload a 17.6 MB file and I'm still getting <code>413 Request Entity Too Large</code> even after setting <code>client_max_body_size 100M</code> in my /etc/nginx/nginx.conf file.</p>
  
  <p>Here's the snippet from the file:</p>
  
  <pre><code>http {
  
    ##
    # Basic Settings
    ##
  
    client_max_body_size 100M;
    sendfile on;
    tcp_nopush on;
    ...
  }
  </code></pre>
  
  <p>After setting this I've used <code>sudo service nginx reload</code>. When that didn't work I've even done a full reboot using <code>sudo shutdown -r now</code> and then <code>cap production puma:start</code> from my local machine. I've also tried <code>client_max_body_size 0;</code> which, from what I understand should disable checking of file sizes entirely. Nothing works. Plus, in getting to this point, I've made some mistakes in the location of the <code>client_max_body_size</code> statement and in those situations the server has failed to start correctly giving a "Something went wrong" error, so I'm pretty sure the changes I'm making are to the right file.</p>
  
  <p>Is there something I might be missing? Is there another place I'm missing to configure this? Is there something I'm missing in the way I'm currently configuring it? Any pointers would be greatly appreciated.</p>