Created
July 30, 2012 13:11
-
-
Save svetlyak40wt/3206772 to your computer and use it in GitHub Desktop.
How to pass POST uploads into FastCGI, using files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client_body_in_file_only clean; # предзакачивать POST на диск и чистить после ответа | |
client_body_temp_path /tmp/nginx/body/; # папка с постами | |
fastcgi_pass_request_body off; # не прокачивать тело POSTа в fastcgi напряму | |
fastcgi_param REQUEST_BODY_FILE $request_body_file; # прокинуть в ENV путь к телу POSTа |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment