首页 > Web开发 > 详细

nginx支持php配置

时间:2014-04-17 06:14:35      阅读:500      评论:0      收藏:0      [点我收藏+]

 

location / {
root /wwwroot/phptest;
index index.html index.htm index.php;
}

location ~ \.(php|php5)$ {
root /wwwroot/phptest;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /wwwroot/phptest$fastcgi_script_name;
include fastcgi_params;
}

nginx支持php配置,布布扣,bubuko.com

nginx支持php配置

原文:http://www.cnblogs.com/pzrr/p/3669163.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!