– LNMP
-
如何在LNMP环境中启用Nginx的Pathinfo支持?
在LNMP环境中为Nginx开启pathinfo,需要修改Nginx配置文件,添加以下内容:,,“,location ~ .php$ {, fastcgi_pass 127.0.0.1:9000;, fastcgi_index index.php;, include fastcgi_params;, fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;, fastcgi_split_path_info ^(.+\.php)(/.*)$;,},“