Home  >  Article  >  Backend Development  >  php path_info 在nginx中失效问题

php path_info 在nginx中失效问题

WBOY
WBOYOriginal
2016-06-21 08:45:16986browse

直接在nginx的配置文件fastcgi.conf 中添加如下

fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;fastcgi_param  QUERY_STRING       $query_string;fastcgi_param  REQUEST_METHOD     $request_method;fastcgi_param  CONTENT_TYPE       $content_type;fastcgi_param  CONTENT_LENGTH     $content_length;fastcgi_param  PATH_INFO          $path_info;


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn