| /f-stack/app/nginx-1.16.1/src/core/ |
| H A D | ngx_conf_file.c | 95 cf->conf_file = NULL; in ngx_conf_param() 214 cf->conf_file->file.log = cf->log; in ngx_conf_parse() 292 if (cf->handler) { in ngx_conf_parse() 304 rv = (*cf->handler)(cf, NULL, cf->handler_conf); in ngx_conf_parse() 364 name = cf->args->elts; in ngx_conf_handler() 388 && cf->cycle->modules[i]->type != cf->module_type) in ngx_conf_handler() 450 conf = ((void **) cf->ctx)[cf->cycle->modules[i]->index]; in ngx_conf_handler() 453 conf = &(((void **) cf->ctx)[cf->cycle->modules[i]->index]); in ngx_conf_handler() 523 cf->args->nelts = 0; in ngx_conf_read_token() 847 gl.log = cf->log; in ngx_conf_include() [all …]
|
| H A D | ngx_conf_file.h | 80 char *(*set)(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 112 typedef char *(*ngx_conf_handler_pt)(ngx_conf_t *cf, 135 typedef char *(*ngx_conf_post_handler_pt) (ngx_conf_t *cf, 172 char * ngx_conf_deprecated(ngx_conf_t *cf, void *post, void *data); 173 char *ngx_conf_check_num_bounds(ngx_conf_t *cf, void *post, void *data); 268 char *ngx_conf_param(ngx_conf_t *cf); 269 char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename); 270 char *ngx_conf_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 276 void ngx_cdecl ngx_conf_log_error(ngx_uint_t level, ngx_conf_t *cf, 281 char *ngx_conf_set_str_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); [all …]
|
| H A D | ngx_module.c | 164 if (cf->cycle->modules_n >= ngx_max_module) { in ngx_add_module() 165 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_add_module() 171 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_add_module() 178 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_add_module() 184 for (m = 0; cf->cycle->modules[m]; m++) { in ngx_add_module() 186 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_add_module() 211 before = cf->cycle->modules_n; in ngx_add_module() 245 if (before != cf->cycle->modules_n) { in ngx_add_module() 247 &cf->cycle->modules[before], in ngx_add_module() 251 cf->cycle->modules[before] = module; in ngx_add_module() [all …]
|
| /f-stack/app/nginx-1.16.1/src/mail/ |
| H A D | ngx_mail_core_module.c | 249 mail_ctx = cf->ctx; in ngx_mail_core_server() 293 pcf = *cf; in ngx_mail_core_server() 294 cf->ctx = ctx; in ngx_mail_core_server() 297 rv = ngx_conf_parse(cf, NULL); in ngx_mail_core_server() 299 *cf = pcf; in ngx_mail_core_server() 326 value = cf->args->elts; in ngx_mail_core_listen() 355 ls->ctx = cf->ctx; in ngx_mail_core_listen() 614 value = cf->args->elts; in ngx_mail_core_protocol() 654 value = cf->args->elts; in ngx_mail_core_resolver() 665 cscf->resolver = ngx_resolver_create(cf, &value[1], cf->args->nelts - 1); in ngx_mail_core_resolver() [all …]
|
| H A D | ngx_mail.c | 147 pcf = *cf; in ngx_mail_block() 148 cf->ctx = ctx; in ngx_mail_block() 150 cf->module_type = NGX_MAIL_MODULE; in ngx_mail_block() 151 cf->cmd_type = NGX_MAIL_MAIN_CONF; in ngx_mail_block() 152 rv = ngx_conf_parse(cf, NULL); in ngx_mail_block() 155 *cf = pcf; in ngx_mail_block() 175 cf->ctx = ctx; in ngx_mail_block() 180 *cf = pcf; in ngx_mail_block() 189 cf->ctx = cscfp[s]->ctx; in ngx_mail_block() 196 *cf = pcf; in ngx_mail_block() [all …]
|
| H A D | ngx_mail_ssl_module.c | 17 static void *ngx_mail_ssl_create_conf(ngx_conf_t *cf); 234 ngx_mail_ssl_create_conf(ngx_conf_t *cf) in ngx_mail_ssl_create_conf() argument 320 conf->ssl.log = cf->log; in ngx_mail_ssl_merge_conf() 371 cln = ngx_pool_cleanup_add(cf->pool, 0); in ngx_mail_ssl_merge_conf() 475 rv = ngx_conf_set_flag_slot(cf, cmd, conf); in ngx_mail_ssl_enable() 489 scf->line = cf->conf_file->line; in ngx_mail_ssl_enable() 517 scf->line = cf->conf_file->line; in ngx_mail_ssl_starttls() 535 value = cf->args->elts; in ngx_mail_ssl_password_file() 557 value = cf->args->elts; in ngx_mail_ssl_session_cache() 559 for (i = 1; i < cf->args->nelts; i++) { in ngx_mail_ssl_session_cache() [all …]
|
| /f-stack/app/nginx-1.16.1/src/stream/ |
| H A D | ngx_stream.c | 153 pcf = *cf; in ngx_stream_block() 154 cf->ctx = ctx; in ngx_stream_block() 173 cf->module_type = NGX_STREAM_MODULE; in ngx_stream_block() 175 rv = ngx_conf_parse(cf, NULL); in ngx_stream_block() 178 *cf = pcf; in ngx_stream_block() 198 cf->ctx = ctx; in ngx_stream_block() 203 *cf = pcf; in ngx_stream_block() 212 cf->ctx = cscfp[s]->ctx; in ngx_stream_block() 219 *cf = pcf; in ngx_stream_block() 248 *cf = pcf; in ngx_stream_block() [all …]
|
| H A D | ngx_stream_core_module.c | 424 cscf->line = cf->conf_file->line; in ngx_stream_core_create_srv_conf() 528 stream_ctx = cf->ctx; in ngx_stream_core_server() 573 pcf = *cf; in ngx_stream_core_server() 574 cf->ctx = ctx; in ngx_stream_core_server() 575 cf->cmd_type = NGX_STREAM_SRV_CONF; in ngx_stream_core_server() 577 rv = ngx_conf_parse(cf, NULL); in ngx_stream_core_server() 579 *cf = pcf; in ngx_stream_core_server() 605 value = cf->args->elts; in ngx_stream_core_listen() 635 ls->ctx = cf->ctx; in ngx_stream_core_listen() 927 value = cf->args->elts; in ngx_stream_core_resolver() [all …]
|
| H A D | ngx_stream_upstream.c | 316 value = cf->args->elts; in ngx_stream_upstream() 338 stream_ctx = cf->ctx; in ngx_stream_upstream() 343 ctx->srv_conf = ngx_pcalloc(cf->pool, in ngx_stream_upstream() 379 pcf = *cf; in ngx_stream_upstream() 380 cf->ctx = ctx; in ngx_stream_upstream() 381 cf->cmd_type = NGX_STREAM_UPS_CONF; in ngx_stream_upstream() 383 rv = ngx_conf_parse(cf, NULL); in ngx_stream_upstream() 385 *cf = pcf; in ngx_stream_upstream() 420 value = cf->args->elts; in ngx_stream_upstream_server() 427 for (i = 2; i < cf->args->nelts; i++) { in ngx_stream_upstream_server() [all …]
|
| H A D | ngx_stream_split_clients_module.c | 126 value = cf->args->elts; in ngx_conf_split_clients_block() 130 ccv.cf = cf; in ngx_conf_split_clients_block() 164 save = *cf; in ngx_conf_split_clients_block() 165 cf->ctx = ctx; in ngx_conf_split_clients_block() 166 cf->handler = ngx_stream_split_clients; in ngx_conf_split_clients_block() 167 cf->handler_conf = conf; in ngx_conf_split_clients_block() 169 rv = ngx_conf_parse(cf, NULL); in ngx_conf_split_clients_block() 171 *cf = save; in ngx_conf_split_clients_block() 207 ctx = cf->ctx; in ngx_stream_split_clients() 208 value = cf->args->elts; in ngx_stream_split_clients() [all …]
|
| H A D | ngx_stream_map_module.c | 205 value = cf->args->elts; in ngx_stream_map_block() 209 ccv.cf = cf; in ngx_stream_map_block() 266 ctx.cf = &save; in ngx_stream_map_block() 270 save = *cf; in ngx_stream_map_block() 271 cf->pool = pool; in ngx_stream_map_block() 272 cf->ctx = &ctx; in ngx_stream_map_block() 278 *cf = save; in ngx_stream_map_block() 298 hash.pool = cf->pool; in ngx_stream_map_block() 392 ctx = cf->ctx; in ngx_stream_map() 394 value = cf->args->elts; in ngx_stream_map() [all …]
|
| H A D | ngx_stream_geo_module.c | 371 value = cf->args->elts; in ngx_stream_geo_block() 431 ctx.pool = cf->pool; in ngx_stream_geo_block() 437 save = *cf; in ngx_stream_geo_block() 438 cf->pool = pool; in ngx_stream_geo_block() 439 cf->ctx = &ctx; in ngx_stream_geo_block() 441 cf->handler_conf = conf; in ngx_stream_geo_block() 445 *cf = save; in ngx_stream_geo_block() 560 ctx = cf->ctx; in ngx_stream_geo() 562 value = cf->args->elts; in ngx_stream_geo() 610 ngx_reset_pool(cf->pool); in ngx_stream_geo() [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/modules/ |
| H A D | ngx_http_rewrite_module.c | 319 value = cf->args->elts; in ngx_http_rewrite() 385 sc.cf = cf; in ngx_http_rewrite() 452 value = cf->args->elts; in ngx_http_rewrite_return() 495 ccv.cf = cf; in ngx_http_rewrite_return() 546 pctx = cf->ctx; in ngx_http_rewrite_if() 604 save = *cf; in ngx_http_rewrite_if() 605 cf->ctx = ctx; in ngx_http_rewrite_if() 618 *cf = save; in ngx_http_rewrite_if() 654 value = cf->args->elts; in ngx_http_rewrite_if_condition() 901 value = cf->args->elts; in ngx_http_rewrite_set() [all …]
|
| H A D | ngx_http_browser_module.c | 57 ngx_http_browser_conf_t *cf); 234 ngx_http_browser_conf_t *cf; in ngx_http_browser_variable() local 238 rc = ngx_http_browser(r, cf); in ngx_http_browser_variable() 276 if (cf->modern_browsers) { in ngx_http_browser() 354 if (cf->netscape4) { in ngx_http_browser() 363 if (cf->ancient_browsers) { in ngx_http_browser() 548 value = cf->args->elts; in ngx_http_modern_browser() 550 if (cf->args->nelts == 2) { in ngx_http_modern_browser() 637 value = cf->args->elts; in ngx_http_ancient_browser() 678 value = cf->args->elts; in ngx_http_modern_browser_value() [all …]
|
| H A D | ngx_http_split_clients_module.c | 128 value = cf->args->elts; in ngx_conf_split_clients_block() 132 ccv.cf = cf; in ngx_conf_split_clients_block() 166 save = *cf; in ngx_conf_split_clients_block() 167 cf->ctx = ctx; in ngx_conf_split_clients_block() 168 cf->handler = ngx_http_split_clients; in ngx_conf_split_clients_block() 169 cf->handler_conf = conf; in ngx_conf_split_clients_block() 171 rv = ngx_conf_parse(cf, NULL); in ngx_conf_split_clients_block() 173 *cf = save; in ngx_conf_split_clients_block() 209 ctx = cf->ctx; in ngx_http_split_clients() 210 value = cf->args->elts; in ngx_http_split_clients() [all …]
|
| H A D | ngx_http_map_module.c | 207 value = cf->args->elts; in ngx_http_map_block() 211 ccv.cf = cf; in ngx_http_map_block() 267 ctx.cf = &save; in ngx_http_map_block() 271 save = *cf; in ngx_http_map_block() 272 cf->pool = pool; in ngx_http_map_block() 273 cf->ctx = &ctx; in ngx_http_map_block() 279 *cf = save; in ngx_http_map_block() 299 hash.pool = cf->pool; in ngx_http_map_block() 393 ctx = cf->ctx; in ngx_http_map() 395 value = cf->args->elts; in ngx_http_map() [all …]
|
| H A D | ngx_http_degradation_module.c | 30 static void *ngx_http_degradation_create_main_conf(ngx_conf_t *cf); 31 static void *ngx_http_degradation_create_loc_conf(ngx_conf_t *cf); 34 static char *ngx_http_degradation(ngx_conf_t *cf, ngx_command_t *cmd, 36 static ngx_int_t ngx_http_degradation_init(ngx_conf_t *cf); 155 ngx_http_degradation_create_main_conf(ngx_conf_t *cf) in ngx_http_degradation_create_main_conf() argument 169 ngx_http_degradation_create_loc_conf(ngx_conf_t *cf) in ngx_http_degradation_create_loc_conf() argument 197 ngx_http_degradation(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) in ngx_http_degradation() argument 203 value = cf->args->elts; in ngx_http_degradation() 212 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_http_degradation() 220 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_http_degradation() [all …]
|
| H A D | ngx_http_geo_module.c | 401 value = cf->args->elts; in ngx_http_geo_block() 461 ctx.pool = cf->pool; in ngx_http_geo_block() 467 save = *cf; in ngx_http_geo_block() 468 cf->pool = pool; in ngx_http_geo_block() 469 cf->ctx = &ctx; in ngx_http_geo_block() 471 cf->handler_conf = conf; in ngx_http_geo_block() 475 *cf = save; in ngx_http_geo_block() 594 ctx = cf->ctx; in ngx_http_geo() 596 value = cf->args->elts; in ngx_http_geo() 660 ngx_reset_pool(cf->pool); in ngx_http_geo() [all …]
|
| H A D | ngx_http_referer_module.c | 271 ngx_http_referer_add_variables(ngx_conf_t *cf) in ngx_http_referer_add_variables() argument 288 ngx_http_referer_create_conf(ngx_conf_t *cf) in ngx_http_referer_create_conf() argument 398 hash.pool = cf->pool; in ngx_http_referer_merge_conf() 419 hash.temp_pool = cf->temp_pool; in ngx_http_referer_merge_conf() 439 hash.temp_pool = cf->temp_pool; in ngx_http_referer_merge_conf() 486 rlcf->keys->pool = cf->pool; in ngx_http_valid_referers() 487 rlcf->keys->temp_pool = cf->pool; in ngx_http_valid_referers() 494 value = cf->args->elts; in ngx_http_valid_referers() 496 for (i = 1; i < cf->args->nelts; i++) { in ngx_http_valid_referers() 616 rc.pool = cf->pool; in ngx_http_add_regex_referer() [all …]
|
| H A D | ngx_http_ssl_module.c | 524 ngx_http_ssl_add_variables(ngx_conf_t *cf) in ngx_http_ssl_add_variables() argument 543 ngx_http_ssl_create_srv_conf(ngx_conf_t *cf) in ngx_http_ssl_create_srv_conf() argument 650 conf->ssl.log = cf->log; in ngx_http_ssl_merge_srv_conf() 703 cln = ngx_pool_cleanup_add(cf->pool, 0); in ngx_http_ssl_merge_srv_conf() 913 ccv.cf = cf; in ngx_http_ssl_compile_certificates() 929 ccv.cf = cf; in ngx_http_ssl_compile_certificates() 962 sscf->line = cf->conf_file->line; in ngx_http_ssl_enable() 979 value = cf->args->elts; in ngx_http_ssl_password_file() 1001 value = cf->args->elts; in ngx_http_ssl_session_cache() 1003 for (i = 1; i < cf->args->nelts; i++) { in ngx_http_ssl_session_cache() [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/ |
| H A D | ngx_http.c | 216 pcf = *cf; in ngx_http_block() 217 cf->ctx = ctx; in ngx_http_block() 323 *cf = pcf; in ngx_http_block() 341 *cf = pcf; in ngx_http_block() 440 hash.pool = cf->pool; in ngx_http_init_headers_in_hash() 475 ph = ngx_pcalloc(cf->pool, in ngx_http_init_phase_handlers() 1447 ha.pool = cf->pool; in ngx_http_server_names() 1494 hash.pool = cf->pool; in ngx_http_server_names() 1948 value = cf->args->elts; in ngx_http_types_slot() 2006 hash.pool = cf->pool; in ngx_http_merge_types() [all …]
|
| H A D | ngx_http_config.h | 25 ngx_int_t (*preconfiguration)(ngx_conf_t *cf); 26 ngx_int_t (*postconfiguration)(ngx_conf_t *cf); 28 void *(*create_main_conf)(ngx_conf_t *cf); 29 char *(*init_main_conf)(ngx_conf_t *cf, void *conf); 31 void *(*create_srv_conf)(ngx_conf_t *cf); 32 char *(*merge_srv_conf)(ngx_conf_t *cf, void *prev, void *conf); 34 void *(*create_loc_conf)(ngx_conf_t *cf); 35 char *(*merge_loc_conf)(ngx_conf_t *cf, void *prev, void *conf); 62 ((ngx_http_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index] 64 ((ngx_http_conf_ctx_t *) cf->ctx)->srv_conf[module.ctx_index] [all …]
|
| H A D | ngx_http_core_module.c | 2805 pcf = *cf; in ngx_http_core_server() 2811 *cf = pcf; in ngx_http_core_server() 3048 save = *cf; in ngx_http_core_location() 3054 *cf = save; in ngx_http_core_location() 3115 save = *cf; in ngx_http_core_types() 3121 *cf = save; in ngx_http_core_types() 4328 sc.cf = cf; in ngx_http_core_root() 4451 save = *cf; in ngx_http_core_limit_except() 4528 ccv.cf = cf; in ngx_http_core_set_aio() 4656 ccv.cf = cf; in ngx_http_core_error_page() [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/v2/ |
| H A D | ngx_http_v2_module.c | 14 static ngx_int_t ngx_http_v2_add_variables(ngx_conf_t *cf); 256 ngx_http_v2_add_variables(ngx_conf_t *cf) in ngx_http_v2_add_variables() argument 316 ngx_http_v2_create_main_conf(ngx_conf_t *cf) in ngx_http_v2_create_main_conf() argument 343 ngx_http_v2_create_srv_conf(ngx_conf_t *cf) in ngx_http_v2_create_srv_conf() argument 406 ngx_http_v2_create_loc_conf(ngx_conf_t *cf) in ngx_http_v2_create_loc_conf() argument 459 value = cf->args->elts; in ngx_http_v2_push() 496 ccv.cf = cf; in ngx_http_v2_push() 527 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_http_v2_pool_size() 535 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_http_v2_pool_size() 552 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_http_v2_preread_size() [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/modules/perl/ |
| H A D | ngx_http_perl_module.c | 465 cln = ngx_pool_cleanup_add(cf->pool, 0); in ngx_http_perl_init_interpreter() 548 ngx_http_perl_create_interpreter(ngx_conf_t *cf, in ngx_http_perl_create_interpreter() argument 616 ngx_log_error(NGX_LOG_ALERT, cf->log, 0, in ngx_http_perl_create_interpreter() 797 ngx_http_perl_create_main_conf(ngx_conf_t *cf) in ngx_http_perl_create_main_conf() argument 853 ngx_http_perl_preconfiguration(ngx_conf_t *cf) in ngx_http_perl_preconfiguration() argument 880 ngx_http_perl_create_loc_conf(ngx_conf_t *cf) in ngx_http_perl_create_loc_conf() argument 923 value = cf->args->elts; in ngx_http_perl() 926 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_http_perl() 950 ngx_conf_log_error(NGX_LOG_ERR, cf, 0, in ngx_http_perl() 977 value = cf->args->elts; in ngx_http_perl_set() [all …]
|