Fastcgi_param script_filename $document _root$fastcgi_script_name, #脚本文件请求的路径fastcgi_param query_string $query _ String #请求的参数, such as App=123fastcgi_param Request_method $request _method; #请求的动作 (get,post) fastcgi_param content_type $content _type; #请求头中的Content-type field Fastcgi_param content_length $content _length; #请求头中的Content the-length field. Fastcgi_param script_name $fastcgi _script_name; #脚本名称 fastcgi_param Request_uri $request _uri; #请求的地址不带参数fastcgi_param Document_uri $document _uri; #与 $uri the same. Fastcgi_param document_root $document _root; #网站的根目录. The value specified in the root directive in the SERVER configuration Fastcgi_param server_protocol $server _protocol; #请求使用的协议, usually http/1.0 or http/1.1. Fastcgi_param Gateway_interface cgi/1.1; #cgi version Fastcgi_param server_software nginx/$nginx _version; #nginx version number, you can modify, hide Fastcgi_param remote_addr $remote _addr; #客户端IPfastcgi_param Remote_port $remote _port; #客户端端口fastcgi_param server_addr $server _addr; #服务器IP地址fastcgi_param server_port $server _port; #服务器端口fastcgi_param server_name $server _name; #服务器名, the server_name specified by the domain name in the server configuration
#fastcgi_param path_info $path _info; #可自定义变量 #php only, required if PHP is built with--enable-force-cgi-redirect#fastcgi_param Redirect_status 200; In PHP you can print out the above service environment variables such as: Echo $_server[' REMOTE_ADDR ']
Nginx Fastcgi_param Explanation