win nginx thinkphp5 配置
来源:互联网 发布:mac dosbox debug.exe 编辑:程序博客网 时间:2024/06/05 01:11
#START-SITE
server {
listen 80;
server_name xxx.xxx.com;
access_log logs/xxx.xxx.com.access.log;
set $root D:/wwwroot/thinkphp5/public;
location ~ .*\.(gif|jpg|jpeg|bmp|png|ico|txt|js|css)$
{
root $root;
}
root $root;
index index.php index.html index.htm;
location @rewrite {
rewrite ^(.*)$ index.php/$1 last;
}
location /{
if ( !-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last;
break;
}
}
location ~ \.php {
root $root;
fastcgi_pass 127.0.0.1:4570;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name;
include fastcgi_params;
}
#END-PHP
}
#END-SITE
server {
listen 80;
server_name xxx.xxx.com;
access_log logs/xxx.xxx.com.access.log;
set $root D:/wwwroot/thinkphp5/public;
location ~ .*\.(gif|jpg|jpeg|bmp|png|ico|txt|js|css)$
{
root $root;
}
root $root;
index index.php index.html index.htm;
location @rewrite {
rewrite ^(.*)$ index.php/$1 last;
}
location /{
if ( !-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last;
break;
}
}
location ~ \.php {
root $root;
fastcgi_pass 127.0.0.1:4570;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name;
include fastcgi_params;
}
#END-PHP
}
#END-SITE
阅读全文
0 0
- win nginx thinkphp5 配置
- thinkphp5 nginx 配置
- thinkphp5配置nginx访问
- thinkphp5 nginx 虚拟站点配置
- thinkphp5.0 在nginx下的配置
- Nginx下ThinkPHP5的配置方法详解
- thinkphp5 nginx配置 安全pathinfo版本
- 谈谈Nginx配置pathinfo对ThinkPHP5的支持
- 谈谈Nginx配置pathinfo对ThinkPHP5的支持
- lnmp1.4 一键安装包 nginx配置thinkphp5
- win环境nginx配置网站403小记
- thinkphp5 的 nginx 配置文件
- Nginx反向代理服务器安装与配置(win)
- 阿里云linux,ubuntu16.04,lnmp,ftp,防火墙,nginx下thinkphp5的配置
- thinkphp5 环境变量配置
- ThinkPHP5 安装&&配置
- thinkphp5配置讲解
- thinkphp5 配置验证码
- 算法之冒泡排序
- OpenCV笔记:填充边缘
- Android面试总结(持续更新修改)
- java代码转HTML(源码转换)
- 装饰器学习笔记1:函数的作用域
- win nginx thinkphp5 配置
- bzoj 1055: [HAOI2008]玩具取名 dp
- 编译交叉工具链powerpc-linux(干净的ubuntu)
- Ubuntu12.04 root用户登录设置
- python写文件时,仅一部分内容被写入文件,感觉被截断了
- pycharm IDE开发工具的使用技巧
- 登陆功能(三)
- cmake编译时遇到的问题解决
- 【mybatis】——动态sql