Can directory for temporary files be on tmpfs

Yusuf Goolamabbas yusufg at
Thu Jun 1 06:42:38 MSD 2006

nginx when configured as a reverse proxy seems to utilise two directories

a) nginx http client request body temporary files: $prefix/client_body_temp
b) nginx http proxy temporary files: $prefix/proxy_temp

The assumption I'm making is that nginx buffers the client body in the
directory when client_body_size is greater than
client_body_buffer_size and on the response writes out the response to
the directory if the response size is greater than proxy_buffers

Or have I got this wrong

Also, can the above directories be placed on tmpfs (memory
filesystems). If so, are there any guidelines on sizing the filesystem

Thanks in advance

More information about the nginx mailing list