server {client_max_body_size 5M;listen 8081;server_name localhost;#charset koi8-r;#access_log logs/host.access.log main;location / {root html/hdcms;in ...
分类:
其他好文 时间:
2017-02-13 13:47:22
阅读次数:
246
遍历Request.ServerVariables Request.ServerVariables("Url") 返回服务器地址 Request.ServerVariables("Path_Info") 客户端提供的路径信息 Request.ServerVariables("Appl_Physica ...
分类:
其他好文 时间:
2016-11-30 14:45:11
阅读次数:
155
猜想: 懵逼 实践: 首先通用的方法,并没有解决问题. 定位: 首先看报错: ...
分类:
其他好文 时间:
2016-11-22 13:10:00
阅读次数:
207
利用路由功能,可以让你的URL地址更加简洁和优雅。ThinkPHP支持对模块的URL地址进行路由操作。路由功能是针对PATHINFO模式或者兼容URL而设计的,暂时不支持普通URL模式。 路由解析的最终结果通常是把URL地址解析到当前模块的某个控制器下的操作方法(不能跨模块路由),在特殊的情况下,也 ...
分类:
Web程序 时间:
2016-11-08 13:22:00
阅读次数:
318
/**
*URL路由检测(根据PATH_INFO)
*@accesspublic
*@param\think\Request$request
*@paramarray$config
*@returnarray
*@throws\think\Exception
*/
publicstaticfunctionrouteCheck($request,array$config)
{
$path=$request->path();
$depr=$config[‘pathinfo_depr‘];
$r..
分类:
移动开发 时间:
2016-10-11 14:52:58
阅读次数:
209
只需要修改3个地方就可以了 location ~ \.php { #去掉$ root H:/PHPServer/WWW; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)( ...
分类:
其他好文 时间:
2016-09-14 08:23:41
阅读次数:
166
要想让nginx支持PATH_INFO,首先需要知道什么是pathinfo,为什么要用pathinfo? pathinfo不是nginx的功能,pathinfo是php的功能。 php中有两个pathinfo,一个是环境变量$_SERVER['PATH_INFO'];另一个是pathinfo函数,p ...
分类:
其他好文 时间:
2016-09-13 13:16:10
阅读次数:
201
用法:git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | --no-pager] ...
分类:
其他好文 时间:
2016-08-30 13:34:50
阅读次数:
141
server{
listen80;
server_namegd.yjyygywcw.com;
root/opt/web/gongdan;
charsetutf-8;
location/{
indexindex.php;
if(!-e$request_filename){
rewrite^/index.php(.*)$/index.php?s=$1last;
rewrite^(.*)$/index.php?s=$1last;
break;
}
}
location~\.php${
fastcgi_index..
分类:
Web程序 时间:
2016-08-15 14:39:04
阅读次数:
185
在使用Apache地址重写mod_rewrite期间,发现,当URL和PATH_INFO中出现%2f(/)或者%5c(\), 会被认为这是个不合法的请求, Apache将会直接返回"404 (Not Found)"错误。 也就是说,Apache在调用 mod_proxy 或 mod_rewrite ...
分类:
Web程序 时间:
2016-07-14 07:11:16
阅读次数:
236