Centos7+Nginx1.10.2+php-fpm基本配置phpinfo
2020-02-17 07:48
351 查看
server {
listen 80;
server_name 192.168.1.195;
root /data/www/default;
index index.php index.html;
location / {
root /data/www/default;
index index.php index.html;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
}
listen 80;
server_name 192.168.1.195;
root /data/www/default;
index index.php index.html;
location / {
root /data/www/default;
index index.php index.html;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
}
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- LNMP环境搭建 Centos7+Nginx 1.6.2+Mysql 8 +PHP 7.3.8 新手上路 超详细(2019年8月上新)
- 服务器 CentOS上yum安装Nginx服务
- Apache与Nginx虚拟主机设置(多域名和多端口的区别)
- Nginx与PHP的交互
- 搭建nginx+mysql+loganalyzer+rsyslog日志服务器
- nginx解析PHP程序报错的解决方案
- Centos6.5 通过yum安装nginx及配置
- 反向-代理 nginx for Mac 的配置以及使用
- nginx1.16编译安装config参数
- 阿里云 ubuntu nginx 发布 rails 项目
- linux下通过nginx部署前后分离的微服务项目
- nginx做域名转发和uri转发
- 【Nginx】最新版nginx安装
- nginx reload 命令报:nginx: [erro 4000 r] invalid PID number
- nginx 学习日志(一)
- Nginx 做负载均衡的几种轮询策略
- nginx,php默认配置填坑
- nginx原理及使用
- 超详细的Nginx vhost配置二级域名教程
- 关于php项目需要运行在nginx环境下如何进行本地共享开发