当前位置: 代码迷 >> Access >>
  详细解决方案

热度:3867   发布时间:2013-02-26 00:00:00.0
Nginx php联合使用时Access denied. 问题

问题:Nginx php联合使用时Access denied. 问题

自己测试了一下:

location ~ \.php$ {
???? root
/opt/nginx/html;
???? fastcgi_pass 127.0.0.1:9000;
???? fastcgi_index index.php;
???? fastcgi_param SCRIPT_FILENAME /opt/nginx/html$fastcgi_script_name;
???? include fastcgi_params;

}

成功了!!!成功页面如附件所示!

  相关解决方案