linux中Nginx+FastCGI+PHP 开启PHPINFO完美方法
2019/10/10/17:45:28 阅读:1954 来源:谷歌SEO算法 标签:
SEO知识
下面自己在做thinkphp时要用到PHPINFO了,下面我来介绍在Nginx+FastCGI+PHP中实现PHPINFO开启方法,希望例子能帮助到各位,代码如下:
- location~^.+\.php{
- rootD:/workspace;
- fastcgi_passbakend;
- fastcgi_indexindex.php;
- #关键在这里
- set$real_script_name$fastcgi_script_name;
- if($fastcgi_script_name~"^(.+?\.php)(/.+)$"){
- set$real_script_name$1;
- set$path_info$2;
- }
- fastcgi_paramSCRIPT_FILENAME$document_root$real_script_name;//phpfensi.com
- fastcgi_paramPATH_INFO$path_info;
- fastcgi_paramPATH_TRANSLATED$document_root$path_info;
- includefastcgi.conf;
- }
热门评论