最新下载
热门教程
- 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 / { |
相关文章
- 价格跟踪交易-价格跟踪交易软件 04-25
- 碧蓝航线使用要注意什么 04-25
- 明日之后苹果能做什么食物攻略 04-25
- 以闪亮之名浅栗捏脸数据id攻略 04-25
- 逆水寒手游春归学堂奇遇如何完成 04-25
- 明日之后二层别墅建造蓝图攻略 04-25