Heim > Artikel > Backend-Entwicklung > php path_info 在nginx中失效问题
直接在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;