下面自己在做thinkphp时要用到PHPINFO了,下面我来介绍在Nginx+FastCGI+PHP中实现PHPINFO开启方法,希望例子能帮助到各位,代码如下:
- location ~ ^.+\.php {
- root D:/workspace;
- fastcgi_pass bakend;
- fastcgi_index index.php;
- # 关键在这里
- set $real_script_name $fastcgi_script_name;
- if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
- set $real_script_name $1;
- set $path_info $2;
- }
- fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; //Vevb.com
- fastcgi_param PATH_INFO $path_info;
- fastcgi_param PATH_TRANSLATED $document_root$path_info;
- include fastcgi.conf;
- }
新闻热点
疑难解答