nginx服务器纳闷析PHP

WBOY
发布: 2016-06-13 10:58:59
原创
818 人浏览过

nginx服务器不解析PHP~

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->server{    listen 8881;    server_name d2.test.com;    index index.html index.htm index.php;    root /home/web/d2.test.com/root/;    location / {       index  index.php index.html;       if (!-e $request_filename){           #rewrite ^/(.*)$ /index.php?/$1? last;           rewrite (.*) /index.php/$1;        }    }    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_param PATH_INFO $fastcgi_script_name;       access_log off;    }}
登录后复制


这是我的一个项目,现在访问这个项目时,nginx没有解析PHP,而是直接下载文件,而且格式是如“IB2EreFS.part”的文件,但文件内容就是php内容。

以前没用过nginx,要怎么修改呢?谢谢大家!
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!