Fastcgi_param
Syntax: fastcgi_param parameter valuedefault: nonecontext: http, server, location the parameter specified by this command will be passed to FastCGI-server. It may use strings, variables, and their combinations as parameter values. If a parameter is not set here, It inherits the outer settings. If a parameter is set here, the outer settings are cleared and only the current layer settings are enabled. The following is an example of the simplest and necessary parameter for PHP: fastcgi_param SCRIPT_FILENAME/home/www/scripts/php $ fastcgi_script_name; fastcgi_param QUERY_STRING $ query_string; the SCRIPT_FILENAME parameter is used by PHP to determine the script execution name, And the QUERY_STRING parameter is a subparameter. To process POST, these three additional parameters are necessary: fastcgi_param REQUEST_METHOD $ request_method; fastcgi_param CONTENT_TYPE $ content_type; fastcgi_param CONTENT_LENGTH $ content_length; if PHP uses the -- enable-force-cgi-redirect option during compilation, setting the REDIRECT_STATUS parameter to 200 is required. Fastcgi_param REDIRECT_STATUS 200;
This article from the "notepad" blog, please be sure to keep this source http://sndapk.blog.51cto.com/5385144/1298738