title: "http" directive is not allowed here in /etc/nginx/conf.d/proxy.conf "rails"
body: <p>Im getting a an error in my nginx error log.  Im trying to add increase file size by adding a folder called .ebextensions and adding a file called 01_files.config. something to do with the http {} im not really sure how to update this file to make it work!! thanks!!</p>
  
  <p><strong>In my 01_files.config</strong></p>
  
  <pre class="lang-yaml prettyprint-override"><code>files:
    "/etc/nginx/conf.d/proxy.conf" :
      mode: "000755"
      owner: root
      group: root
      content: |
          http {
            client_max_body_size 20M;
          }
  
          service nginx reload
  </code></pre>
  
  <p><strong>image.config</strong> "located in the .ebextensions folder"</p>
  
  <pre class="lang-yaml prettyprint-override"><code>packages:
    yum:
      ImageMagick-devel: []
  </code></pre>
  
  <h2>/var/log/nginx/error.log</h2>
  
  <p><code>2016/06/05 03:23:01 [emerg] 6587#0: "http" directive is not allowed here in /etc/nginx/conf.d/proxy.conf:1</code></p>
  
  <p><strong>/var/log/nginx/error.log-20160605</strong></p>
  
  <p><code>[error] 2818#0: *19636 client intended to send too large body: 2771652 bytes, client: 172.31.24.171, server: _, request: "POST / HTTP/1.1", host:</code></p>