Nginx配置隐藏index.php和PATH_INFO支持
来源:互联网 发布:python idle官方下载 编辑:程序博客网 时间:2024/06/06 00:35
版权声明:本文为博主原创文章,未经博主允许不得转载。
server { listen 80; server_name myblog.com ; root "D:/phpStudy2/WWW/myblog/public"; location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1; } } 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; }}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
==[注意]==
如果nignx/conf下有vhosts.conf这个文件的话,在这个文件里配置,当有这个文件的时候,在nginx.conf里配置是不起作用的。
阅读全文
0 0
- Nginx配置隐藏index.php和PATH_INFO支持
- Nginx配置隐藏index.php和PATH_INFO支持
- 配置nginx支持PATH_INFO
- 配置nginx支持 PATH_INFO
- Nginx/PHP/path_info问题,去掉index.php
- nginx 隐藏index.php 支持PATHINFO
- Nginx隐藏index.php和Pathinfo模式配置例子
- nginx配置pathinfo模式和隐藏index.php
- centos7 thinphp5 Nginx隐藏index.php和Pathinfo模式配置
- Nginx隐藏index.php和Pathinfo模式配置例子
- nginx支持yaf的path_info配置
- Nginx配置 隐藏入口文件index.php
- Nginx 服务器隐藏 index.php 配置
- Nginx(PHP/fastcgi)的PATH_INFO配置
- Nginx(PHP/fastcgi)的PATH_INFO配置
- 让nginx支持PATH_INFO
- nginx支持path_info
- nginx 隐藏index.php
- 用python的matplotlib绘图后保存图形
- 前端属性选择器的权重分析
- Redis4.0.0 安装及配置 (Linux — Centos7)
- C++中有符号类型与无符号类型对比
- 机器学习模型评估与选择
- Nginx配置隐藏index.php和PATH_INFO支持
- 使用shell脚本获取cpu平均使用率
- git pull和git clone的区别
- 利用CSS设置背景图片不显示的问题
- U-Boot启动过程源码分析(3)-启动Linux
- Ng机器学习01
- maven生命周期以及简单流程
- 预处理线程问题解决方案
- Leetcode 72. Edit Distance