nginx配置DocumentRoot
来源:互联网 发布:问剑传说手游进阶数据 编辑:程序博客网 时间:2024/06/04 21:49
nginx配置DocumentRoot
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
Nginx的$document_root 的参数是由root html那一行定义的,默认是在/etc/nginx/html/ 所以把 html换成站点根目录就可以了。
location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
- nginx配置DocumentRoot
- DocumentRoot
- Apache httpd.conf 配置 之 DocumentRoot
- [liunx apache配置]DocumentRoot does not exist解决方法
- mac 中配置apache的DocumentRoot路径 出现403 Forbidden错误
- 配置apache2.4修改documentRoot出现You don't have permission to access / on this server
- 【旧资料整理】xampp Apache DocumentRoot跨分区配置要点及Access forbidden解决方法
- Varnish+Nginx 配置----Nginx
- Nginx-配置-nginx.conf
- 【Nginx】Nginx配置优化
- 105 nginx nginx 配置
- nginx nginx.conf 配置
- nginx 配置
- nginx 配置
- Nginx配置
- nginx配置
- NGINX配置
- nginx配置
- 创意训练游戏摘录
- 图的遍历
- 华为公司2014届校园招聘软件类机考样题 粤港澳地区
- jquery.cookie.js使用
- Checking Network Configuration requirements Failed
- nginx配置DocumentRoot
- 做一个会编程的人——美国32位顶级精英如是说
- 黑马程序员 java入门:for嵌套
- 创建含有category的静态库,selector not recognized的解决方案
- Steve Yegge:Google面试秘籍
- [LeetCode]Same Tree解题
- vs2012编译程序在xp下运行时提示"无法定位程序输入点 InitializeCriticalSectionEx ..."
- java基础--Comparable和Comparator的区别
- epoll使用入门学习