title: best way to save nginx request as a file?
body: <p>i am looking for a solution to <strong>save data sent via http</strong> (e.g. as a POST) as quickly as possible (with lowest overhead) via <strong>nginx</strong> (v1.2.9).  i tried the following nginx configuration, but am not seeing any files written in the directory:</p>
  
  <pre><code>server {
    listen 9199;
    location /saveme {
      client_body_in_file_only on;
      client_body_temp_path /tmp/bodies;
    }
  }
  </code></pre>
  
  <p><em>what am i doing wrong?</em>  and/or is there a better way to accomplish this?  (the data that is written should ideally be one file per request, and it does not matter if it is fairly "raw" in nature.  post-processing of the files will be done via a separate process via a queue.)</p>