码迷,mamicode.com
首页 >  
搜索关键字:http_core    ( 79个结果
nginx 核心模块指令(一)
alias   root nginx配置下有两个指定目录的指令,root和alias location /img/ { alias /var/www/image/; } #若按照上述配置的话,则访问/img/目录里面的文件时,ningx会自动去/var/www/image/目录找文件 location /img/ { root /var/www/image; ...
分类:其他好文   时间:2015-08-10 00:28:28    阅读次数:140
nginx_http核心模块(二)
对一些常用的配置项做一些解释:详细请看官方文档:http://nginx.org/en/docs/http/ngx_http_core_module.html1. alias Syntax: alias path;Default: —Context: location 上...
分类:Web程序   时间:2015-07-03 13:41:14    阅读次数:186
Nginx源码研究十四:ngx_http_core_run_phases
if (ngx_http_init_phases(cf, cmcf) != NGX_OK) { return NGX_CONF_ERROR; } if (ngx_http_init_headers_in_hash(cf, cmcf) != NGX_OK) { ...
分类:Web程序   时间:2015-05-18 12:19:42    阅读次数:638
MPM
1.查看当前模式 httpd -lC:\wamp\bin\apache\Apache2.2.17\bin>httpd -lCompiled in modules: core.c mod_win32.c mpm_winnt.c http_core.c mod_so.c2.修改apache/c...
分类:其他好文   时间:2015-05-01 07:07:00    阅读次数:193
Nginx源码研究七:ngx_http_core_main_conf_t
typedef struct { ngx_array_t servers; /* ngx_http_core_srv_conf_t */ ngx_http_phase_engine_t phase_engine; ngx_hash...
分类:Web程序   时间:2015-04-30 17:46:54    阅读次数:530
nginx源代码分析--ngx_http_optimize_servers()函数
这个函数做了连部分工作:1)以port为入口点 将实用的信息存放到hash表内 2)调用ngx_http_init_listening()函数 对port进行监听1、 在ngx_http_core_main_conf_t结构体中有一个字段为ports,是一个数组,数组内存放的全是ngx_http_c...
分类:Web程序   时间:2015-01-25 20:50:07    阅读次数:210
nginx获取url参数
在文件src\http\ngx_http_core_module.c的函数ngx_http_core_run_phases(ngx_http_request_t *r)里面,添加如下代码://声明部分 ngx_str_t* name; ngx_http_variable_value_t*...
分类:其他好文   时间:2014-08-18 17:56:22    阅读次数:1094
nginx源码分析--ngx_http_optimize_servers()函数
这个函数做了连部分工作:1)以端口为入口点 将有用的信息存放到hash表内 2)调用ngx_http_init_listening()函数 对端口进行监听 1、 在ngx_http_core_main_conf_t结构体中有一个字段为ports,是一个数组,数组内存放的全是ngx_http_conf_port_t;对于每一个端口信息(ngx_http_conf_port_t),调用 ngx_h...
分类:其他好文   时间:2014-06-21 21:16:25    阅读次数:267
【Nginx】监听端口的管理
监听端口属于server虚拟主机,由server{}块内的listen配置项决定。 在处理配置文件http块内main级别的配置项时,每个HTTP模块都会调用create_main_conf、create_srv_conf、create_loc_conf三个方法建立三个结构体,用来分别存储http块、server块、location块内的配置项。ngx_http_core_module是...
分类:其他好文   时间:2014-06-15 13:20:06    阅读次数:268
79条   上一页 1 ... 6 7 8
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!