I am looking for a solution for saving data sent via http (for example, as POST) as quickly as possible (at the lowest cost) through nginx (v1.2.9). I tried the following nginx configuration but cannot see the files written in the directory:
server { listen 9199; location /saveme { client_body_in_file_only on; client_body_temp_path /tmp/bodies; } }
what am I doing wrong? and / or is there a better way to achieve this? (The data that needs to be written should ideally be one file for each request, and it does not matter if it is quite raw in nature. Subsequent file processing will be done through a separate process through a queue.)
source share