
简述ThinkPHP的Nginx配置及隐藏index.php入口文件的方法
5星
- 浏览量: 0
- 大小:None
- 文件类型:PDF
简介:
本文介绍了如何在Nginx服务器中为ThinkPHP框架进行正确的配置,并提供了隐藏入口文件index.php的具体方法。
1. 我心血来潮将ThinkPHP项目部署到了nginx服务器上,之前该项目是在Apache环境下运行的。后来发现Nginx不支持pathinfo功能,难怪在TP框架中怎么也无法实现。
2. 开始配置文件了,比网上的其他资料要清晰得多:
```
server {
listen 80;
server_name www.tp.com tp.com;
index index.html index.htm index.php default.html default.htm default.php;
root homewwwrootwww.tp.com;
include index.php.conf;
}
```
全部评论 (0)
还没有任何评论哟~


