nginx+thinkphp pathinfo模式配置
2024-09-07 20:55:01
server {
listen 81;
server_name http://lanxing.cc gohosts.com;
root "D:\WWW\lanxing\public";
location / {
index index.html index.htm index.php;
#autoindex on;
# 专门针对tp的rewrite模式
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
最新文章
- 用ajax实现评论刷新
- uva10001 Garden of Eden
- ecshop 常见问题汇总
- sqlserver获取表名,字段名
- 设置lable文本内容的行间距
- SSH整合常见错误
- JDK源码阅读(三) Collection<;T>;接口,Iterable<;T>;接口
- windows下和linux下 Redis 安装
- OpenLayers学习笔记5——使用jQuery UI实现查询并标注(UI篇)
- python中MySQLdb的使用
- sql优化------查询整个表按照某个字段排序后的前几条
- hibernate @OneToMany等注解设置查询过滤条件
- Failed to resolve: common Open File 导入项目问题
- 背水一战 Windows 10 (78) - 自定义控件: 基础知识, 依赖属性, 附加属性
- L3-016 二叉搜索树的结构 (30 分) 二叉树
- 7.翻译系列:EF 6中的继承策略(EF 6 Code-First 系列)
- solr 使用edismax来控制评分
- 初次接触Dynamics 365
- [Web 前端] CSS篇之 4. position 和 display 的取值和各自的意思和用法
- [转]使用互斥对象让程序只运行一次(delphi)