最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
nginx中隐藏index.php文件配置方法
时间:2022-06-30 18:43:52 编辑:袖梨 来源:一聚教程网
配置文件
代码如下 | 复制代码 |
/www/wdlinx/nginx-1.2.8/xxxx.com.conf |
#将默认的localhost块替换成
代码如下 | 复制代码 |
location ~ .php($|/) { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } |
隐藏掉index.php
代码如下 | 复制代码 |
location / { |
相关文章
- 吾今有世家声望获取方法介绍说明 10-05
- 光与影33号远征队维尔索无限眩晕流BD攻略 10-05
- 吾今有世家存档具体位置介绍说明 10-05
- 多洛可小镇夏洛克委托任务完成方法 10-05
- 宗门志游戏胜利方法介绍说明 10-05
- 光与影33号远征队黑屏解决方法分享 10-05