![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
文章平均质量分 85
GGJJLLDD
这个作者很懒,什么都没留下…
展开
-
nginx proxy limit module development --1
The company need the post and put request to be limited. The task is add the module to nginx. 1. The research of nginx about the principle of read the client request body. Function原创 2014-01-17 16:04:09 · 1013 阅读 · 0 评论 -
nginx proxy limit module development --2
Core algorithm of limit rate: code: if (u->limit_rate) { excess = u->received - u->limit_rate_after - u->limit_rate * (ngx_time() - r->start_sec + 1); if (excess > 0) { if (ngx_h原创 2014-01-17 16:05:15 · 1253 阅读 · 0 评论 -
nginx proxy limit module development --3
Adding nginx variable: http://blog.sina.com.cn/s/blog_7303a1dc0100ycd1.html is very useful. Two ways about variable. 1. nginx own variable. 内建变量 免费的午餐,不用任何手工劳动就能使用的变量——nginx帮你转载 2014-01-17 16:07:03 · 1045 阅读 · 0 评论 -
nginx configure location 流程以及重要函数分析
ngx_tcp_core_location(ngx_conf_t*cf, ngx_command_t *cmd, void *dummy) clcf= ctx->loc_conf[ngx_tcp_core_module.ctx_index]; clcf->loc_conf= ctx->loc_conf; 同样的逻辑,看着很迷惑。 使用clcf,给loc_conf赋值 ngx_tcp_原创 2014-04-18 17:40:38 · 883 阅读 · 0 评论 -
nginx http模块中配置的实现和解析---1
配置的主要函数流程: 下面是http配置解析的函数流程: ngx_http_block #ngx_string("http"),初始化总的config,然后传递 ------ngx_http_init_phases ------ngx_http_init_phase_handlers ------ngx_http_core_find_co原创 2014-04-11 17:57:06 · 1145 阅读 · 0 评论