当前第2页 返回上一页
配置nginx支持php-fpm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | vim /etc/nginx/conf.d/ default .conf
......
location ~ \.php$ {
root /usr/share/nginx/html;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/ var /run/php71-fpm.sock;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts $fastcgi_script_name ;
fastcgi_param SCRIPT_FILENAME $document_root $fastcgi_script_name ;
include fastcgi_params;
}
......
#重新加载配置
service nginx reload
|
以上就是nginx配置支持php-fpm的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
502nginx是什么意思
nginx的优势是什么?
燕十八nginx视频资料推荐(源码、课件)
nginx反向代理两个不同服务器
502 bad gateway nginx什么意思
nginx怎么输出php错误日志
什么是nginx负载均衡
nginx和netty区别
如何仅在nginx web服务器中启用tls1.2
nginx怎么配置ssl
更多相关阅读请进入《nginx》频道 >>
转载请注明出处:木庄网络博客 » nginx配置支持php-fpm