openresty解析php
来源:互联网 发布:php是什么意思在奶粉中 编辑:程序博客网 时间:2024/04/20 07:16
openresty解析php
openresty解析php跟nginx配置基本一样,配置如下:
vim /usr/local/openresty/nginx/conf/nginx.conf location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
将文件中的上段注释打开即可。
但是我配置之后对PHP脚本报404错误,之后将
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
修改为:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
即可正常运行。
0 0
- openresty解析php
- openresty php luajit
- OpenResty(5)--PHP
- php+memcache和openresty+memcache
- openresty
- OpenResty
- openresty
- openresty
- openresty
- centos+openresty+mariaDB+php搭建web服务器
- CentOS 6.7构建 OpenResty(Nginx)+PHP 7(php-fpm)+MySQL5.7 运行环境
- Openresty 安装
- 配置openresty
- 安装openresty
- 安装OpenResty
- openresty 简介
- openresty-redis
- 安装OpenResty
- 最大连续子序列 HDU
- 【问题收录】Ubuntu14.04出现循环登录无法进入图形界面的问题
- MongoDb安装教程
- 图的最小生成树prim算法总结
- 线上问题的解决思路
- openresty解析php
- 教程:提取macOS应用图标
- 数据驱动决策的13种思维方式
- C#读取Esri Grid删格文件的的办法
- 字符设备驱动程序----概念分析
- gradle 分包管理layout
- 谈谈23种设计模式在Android源码及项目中的应用
- iOS开发中,出现libxml/parser.h not found
- Apache Traffic Server(ATS) 根据User Agent实现302重定向