title: Nginx error: client intended to send too large body
body: <p>Periodically I get an error:</p>
  
  <pre><code>This site can't be reached.
  The webpage at https://example.com/document might be temporarily down or it my have moved permanently to are new web address.
  </code></pre>
  
  <p>My site is stored on AWS.
  I use rails + nginx + passenger.</p>
  
  <p>Nginx error log:</p>
  
  <pre><code>client intended to send too large body: 3729822 bytes, 
  client: 172.42.35.54, server: example.com, 
  request: "POST /document HTTP/1.1", host: "test.example.com", 
  referrer: "https://test.example.com/document/new"
  </code></pre>
  
  <p>app log:</p>
  
  <p><code>ActionController::RoutingError (No route matches [GET] "/document")</code></p>
  
  <p>After a while, the error disappears. I have doubts that this is due to deployment, but I'm not sure. Could you please tell me, with what it can be related and how to fix such a problem?</p>