| /f-stack/app/nginx-1.16.1/src/http/ |
| H A D | ngx_http_core_module.c | 968 (clcf->noname ? "*" : (clcf->exact_match ? "=" : "")), in ngx_http_core_find_config_phase() 1020 p = ngx_cpymem(p, clcf->name.data, clcf->name.len); in ngx_http_core_find_config_phase() 1297 if (clcf->handler) { in ngx_http_update_location_config() 1598 if (!clcf->etag) { in ngx_http_set_etag() 1800 alias = clcf->alias; in ngx_http_map_uri_to_path() 1820 last = ngx_copy(path->data, clcf->root.data, clcf->root.len); in ngx_http_map_uri_to_path() 3390 if (clcf == NULL) { in ngx_http_core_create_loc_conf() 3486 return clcf; in ngx_http_core_create_loc_conf() 4300 clcf->alias = alias ? clcf->name.len : 0; in ngx_http_core_root() 4304 && clcf->root.data[clcf->root.len - 1] == '/') in ngx_http_core_root() [all …]
|
| H A D | ngx_http_special_response.c | 17 ngx_http_core_loc_conf_t *clcf, ngx_uint_t err); 420 ngx_http_core_loc_conf_t *clcf; in ngx_http_special_response_handler() local 458 if (clcf->recursive_error_pages == 0) { in ngx_http_special_response_handler() 462 err_page = clcf->error_pages->elts; in ngx_http_special_response_handler() 464 for (i = 0; i < clcf->error_pages->nelts; i++) { in ngx_http_special_response_handler() 477 if (clcf->msie_refresh in ngx_http_special_response_handler() 523 return ngx_http_send_special_response(r, clcf, err); in ngx_http_special_response_handler() 589 ngx_http_core_loc_conf_t *clcf; in ngx_http_send_error_page() local 651 if (clcf->msie_refresh && r->headers_in.msie) { in ngx_http_send_error_page() 663 ngx_http_core_loc_conf_t *clcf, ngx_uint_t err) in ngx_http_send_special_response() argument [all …]
|
| H A D | ngx_http_copy_filter_module.c | 92 ngx_http_core_loc_conf_t *clcf; in ngx_http_copy_filter() local 111 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_copy_filter() 118 ctx->alignment = clcf->directio_alignment; in ngx_http_copy_filter() 129 if (ngx_file_aio && clcf->aio == NGX_HTTP_AIO_ON) { in ngx_http_copy_filter() 138 if (clcf->aio == NGX_HTTP_AIO_THREADS) { in ngx_http_copy_filter() 269 ngx_http_core_loc_conf_t *clcf; in ngx_http_copy_thread_handler() local 273 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_copy_thread_handler() 274 tp = clcf->thread_pool; in ngx_http_copy_thread_handler() 277 if (ngx_http_complex_value(r, clcf->thread_pool_value, &name) in ngx_http_copy_thread_handler()
|
| H A D | ngx_http_header_filter_module.c | 168 ngx_http_core_loc_conf_t *clcf; in ngx_http_header_filter() local 280 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_header_filter() 283 if (clcf->server_tokens == NGX_HTTP_SERVER_TOKENS_ON) { in ngx_http_header_filter() 326 && clcf->absolute_redirect) in ngx_http_header_filter() 330 if (clcf->server_name_in_redirect) { in ngx_http_header_filter() 352 if (clcf->port_in_redirect) { in ngx_http_header_filter() 392 if (clcf->keepalive_header) { in ngx_http_header_filter() 402 if (clcf->gzip_vary) { in ngx_http_header_filter() 452 if (clcf->server_tokens == NGX_HTTP_SERVER_TOKENS_ON) { in ngx_http_header_filter() 562 if (clcf->keepalive_header) { in ngx_http_header_filter() [all …]
|
| H A D | ngx_http_write_filter_module.c | 55 ngx_http_core_loc_conf_t *clcf; in ngx_http_write_filter() local 211 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_write_filter() 219 if (!last && !flush && in && size < (off_t) clcf->postpone_output) { in ngx_http_write_filter() 255 r->limit_rate_after = clcf->limit_rate_after; in ngx_http_write_filter() 271 if (clcf->sendfile_max_chunk in ngx_http_write_filter() 272 && (off_t) clcf->sendfile_max_chunk < limit) in ngx_http_write_filter() 274 limit = clcf->sendfile_max_chunk; in ngx_http_write_filter() 278 limit = clcf->sendfile_max_chunk; in ngx_http_write_filter()
|
| H A D | ngx_http_request.c | 509 ngx_http_core_loc_conf_t *clcf; in ngx_http_create_request() local 651 ngx_http_core_loc_conf_t *clcf; in ngx_http_ssl_handshake() local 864 ngx_http_core_loc_conf_t *clcf; in ngx_http_ssl_servername() local 2155 ngx_http_core_loc_conf_t *clcf; in ngx_http_set_virtual_server() local 2417 ngx_http_core_loc_conf_t *clcf; in ngx_http_finalize_request() local 2681 ngx_http_core_loc_conf_t *clcf; in ngx_http_finalize_connection() local 2742 ngx_http_core_loc_conf_t *clcf; in ngx_http_set_write_handler() local 2777 ngx_http_core_loc_conf_t *clcf; in ngx_http_writer() local 3000 ngx_http_core_loc_conf_t *clcf; in ngx_http_set_keepalive() local 3349 ngx_http_core_loc_conf_t *clcf; in ngx_http_set_lingering_close() local [all …]
|
| H A D | ngx_http.c | 654 rv = ngx_http_merge_locations(cf, clcf->locations, clcf->loc_conf, in ngx_http_merge_locations() 710 if (clcf->regex) { in ngx_http_init_locations() 722 if (clcf->named) { in ngx_http_init_locations() 732 if (clcf->noname) { in ngx_http_init_locations() 863 if (clcf->exact_match in ngx_http_add_location() 865 || clcf->regex in ngx_http_add_location() 867 || clcf->named || clcf->noname) in ngx_http_add_location() 869 lq->exact = clcf; in ngx_http_add_location() 874 lq->inclusive = clcf; in ngx_http_add_location() 877 lq->name = &clcf->name; in ngx_http_add_location() [all …]
|
| H A D | ngx_http_request_body.c | 39 ngx_http_core_loc_conf_t *clcf; in ngx_http_read_client_request_body() local 160 size = clcf->client_body_buffer_size; in ngx_http_read_client_request_body() 173 size = clcf->client_body_buffer_size; in ngx_http_read_client_request_body() 273 ngx_http_core_loc_conf_t *clcf; in ngx_http_do_read_client_request_body() local 435 ngx_http_core_loc_conf_t *clcf; in ngx_http_write_request_body() local 452 tf->path = clcf->client_body_temp_path; in ngx_http_write_request_body() 591 ngx_http_core_loc_conf_t *clcf; in ngx_http_discarded_request_body_handler() local 646 if (timer > clcf->lingering_timeout) { in ngx_http_discarded_request_body_handler() 647 timer = clcf->lingering_timeout; in ngx_http_discarded_request_body_handler() 938 ngx_http_core_loc_conf_t *clcf; in ngx_http_request_body_chunked_filter() local [all …]
|
| H A D | ngx_http_postpone_filter_module.c | 186 ngx_http_core_loc_conf_t *clcf; in ngx_http_postpone_filter_in_memory() local 194 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_postpone_filter_in_memory() 199 if (len > clcf->subrequest_output_buffer_size) { in ngx_http_postpone_filter_in_memory() 206 len = clcf->subrequest_output_buffer_size; in ngx_http_postpone_filter_in_memory()
|
| H A D | ngx_http_upstream.c | 1663 ngx_http_core_loc_conf_t *clcf; in ngx_http_upstream_ssl_init_connection() local 2114 ngx_http_core_loc_conf_t *clcf; in ngx_http_upstream_send_request_body() local 2588 ngx_http_core_loc_conf_t *clcf; in ngx_http_upstream_intercept_errors() local 2603 if (clcf->error_pages == NULL) { in ngx_http_upstream_intercept_errors() 2909 ngx_http_core_loc_conf_t *clcf; in ngx_http_upstream_send_response() local 3165 if (clcf->aio == NGX_HTTP_AIO_THREADS && clcf->aio_write) { in ngx_http_upstream_send_response() 3250 ngx_http_core_loc_conf_t *clcf; in ngx_http_upstream_upgrade() local 3272 if (clcf->tcp_nodelay) { in ngx_http_upstream_upgrade() 3341 ngx_http_core_loc_conf_t *clcf; in ngx_http_upstream_process_upgraded() local 3570 ngx_http_core_loc_conf_t *clcf; in ngx_http_upstream_process_non_buffered_request() local [all …]
|
| H A D | ngx_http_variables.c | 1505 ngx_http_core_loc_conf_t *clcf; in ngx_http_variable_document_root() local 1509 if (clcf->root_lengths == NULL) { in ngx_http_variable_document_root() 1510 v->len = clcf->root.len; in ngx_http_variable_document_root() 1514 v->data = clcf->root.data; in ngx_http_variable_document_root() 1518 clcf->root_values->elts) in ngx_http_variable_document_root() 1548 ngx_http_core_loc_conf_t *clcf; in ngx_http_variable_realpath_root() local 1555 if (clcf->root_lengths == NULL) { in ngx_http_variable_realpath_root() 1556 path = clcf->root; in ngx_http_variable_realpath_root() 1560 clcf->root_values->elts) in ngx_http_variable_realpath_root() 1949 ngx_http_core_loc_conf_t *clcf; in ngx_http_variable_sent_keep_alive() local [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/modules/ |
| H A D | ngx_http_flv_module.c | 74 ngx_http_core_loc_conf_t *clcf; in ngx_http_flv_handler() local 102 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_flv_handler() 106 of.read_ahead = clcf->read_ahead; in ngx_http_flv_handler() 107 of.directio = clcf->directio; in ngx_http_flv_handler() 108 of.valid = clcf->open_file_cache_valid; in ngx_http_flv_handler() 109 of.min_uses = clcf->open_file_cache_min_uses; in ngx_http_flv_handler() 110 of.errors = clcf->open_file_cache_errors; in ngx_http_flv_handler() 111 of.events = clcf->open_file_cache_events; in ngx_http_flv_handler() 150 if (rc != NGX_HTTP_NOT_FOUND || clcf->log_not_found) { in ngx_http_flv_handler() 260 ngx_http_core_loc_conf_t *clcf; in ngx_http_flv() local [all …]
|
| H A D | ngx_http_static_module.c | 60 ngx_http_core_loc_conf_t *clcf; in ngx_http_static_handler() local 87 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_static_handler() 91 of.read_ahead = clcf->read_ahead; in ngx_http_static_handler() 92 of.directio = clcf->directio; in ngx_http_static_handler() 93 of.valid = clcf->open_file_cache_valid; in ngx_http_static_handler() 94 of.min_uses = clcf->open_file_cache_min_uses; in ngx_http_static_handler() 95 of.errors = clcf->open_file_cache_errors; in ngx_http_static_handler() 96 of.events = clcf->open_file_cache_events; in ngx_http_static_handler() 135 if (rc != NGX_HTTP_NOT_FOUND || clcf->log_not_found) { in ngx_http_static_handler() 160 if (!clcf->alias && clcf->root_lengths == NULL && r->args.len == 0) { in ngx_http_static_handler() [all …]
|
| H A D | ngx_http_index_module.c | 108 ngx_http_core_loc_conf_t *clcf; in ngx_http_index_handler() local 205 of.read_ahead = clcf->read_ahead; in ngx_http_index_handler() 206 of.directio = clcf->directio; in ngx_http_index_handler() 207 of.valid = clcf->open_file_cache_valid; in ngx_http_index_handler() 208 of.min_uses = clcf->open_file_cache_min_uses; in ngx_http_index_handler() 210 of.errors = clcf->open_file_cache_errors; in ngx_http_index_handler() 211 of.events = clcf->open_file_cache_events; in ngx_http_index_handler() 264 if (!clcf->alias) { in ngx_http_index_handler() 309 of.valid = clcf->open_file_cache_valid; in ngx_http_index_test_dir() 310 of.errors = clcf->open_file_cache_errors; in ngx_http_index_test_dir() [all …]
|
| H A D | ngx_http_gzip_static_module.c | 95 ngx_http_core_loc_conf_t *clcf; in ngx_http_gzip_static_handler() local 120 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_gzip_static_handler() 122 if (!clcf->gzip_vary && rc != NGX_OK) { in ngx_http_gzip_static_handler() 145 of.read_ahead = clcf->read_ahead; in ngx_http_gzip_static_handler() 146 of.directio = clcf->directio; in ngx_http_gzip_static_handler() 147 of.valid = clcf->open_file_cache_valid; in ngx_http_gzip_static_handler() 148 of.min_uses = clcf->open_file_cache_min_uses; in ngx_http_gzip_static_handler() 149 of.errors = clcf->open_file_cache_errors; in ngx_http_gzip_static_handler() 150 of.events = clcf->open_file_cache_events; in ngx_http_gzip_static_handler() 152 if (ngx_http_set_disable_symlinks(r, clcf, &path, &of) != NGX_OK) { in ngx_http_gzip_static_handler() [all …]
|
| H A D | ngx_http_try_files_module.c | 89 ngx_http_core_loc_conf_t *clcf; in ngx_http_try_files_handler() local 110 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_try_files_handler() 112 alias = clcf->alias; in ngx_http_try_files_handler() 218 of.read_ahead = clcf->read_ahead; in ngx_http_try_files_handler() 219 of.directio = clcf->directio; in ngx_http_try_files_handler() 220 of.valid = clcf->open_file_cache_valid; in ngx_http_try_files_handler() 221 of.min_uses = clcf->open_file_cache_min_uses; in ngx_http_try_files_handler() 223 of.errors = clcf->open_file_cache_errors; in ngx_http_try_files_handler() 224 of.events = clcf->open_file_cache_events; in ngx_http_try_files_handler() 226 if (ngx_http_set_disable_symlinks(r, clcf, &path, &of) != NGX_OK) { in ngx_http_try_files_handler() [all …]
|
| H A D | ngx_http_empty_gif_module.c | 134 ngx_http_core_loc_conf_t *clcf; in ngx_http_empty_gif() local 136 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); in ngx_http_empty_gif() 137 clcf->handler = ngx_http_empty_gif_handler; in ngx_http_empty_gif()
|
| H A D | ngx_http_not_modified_filter_module.c | 139 ngx_http_core_loc_conf_t *clcf; in ngx_http_test_if_modified() local 145 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_test_if_modified() 147 if (clcf->if_modified_since == NGX_HTTP_IMS_OFF) { in ngx_http_test_if_modified() 161 if (clcf->if_modified_since == NGX_HTTP_IMS_EXACT in ngx_http_test_if_modified()
|
| H A D | ngx_http_stub_status_module.c | 230 ngx_http_core_loc_conf_t *clcf; in ngx_http_set_stub_status() local 232 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); in ngx_http_set_stub_status() 233 clcf->handler = ngx_http_stub_status_handler; in ngx_http_set_stub_status()
|
| H A D | ngx_http_memcached_module.c | 699 ngx_http_core_loc_conf_t *clcf; in ngx_http_memcached_pass() local 717 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); in ngx_http_memcached_pass() 719 clcf->handler = ngx_http_memcached_handler; in ngx_http_memcached_pass() 721 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') { in ngx_http_memcached_pass() 722 clcf->auto_redirect = 1; in ngx_http_memcached_pass()
|
| H A D | ngx_http_chunked_filter_module.c | 62 ngx_http_core_loc_conf_t *clcf; in ngx_http_chunked_header_filter() local 77 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_chunked_header_filter() 80 && clcf->chunked_transfer_encoding) in ngx_http_chunked_header_filter()
|
| H A D | ngx_http_access_module.c | 278 ngx_http_core_loc_conf_t *clcf; in ngx_http_access_found() local 281 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); in ngx_http_access_found() 283 if (clcf->satisfy == NGX_HTTP_SATISFY_ALL) { in ngx_http_access_found()
|
| H A D | ngx_http_rewrite_module.c | 537 ngx_http_core_loc_conf_t *clcf, *pclcf; in ngx_http_rewrite_if() local 575 clcf = ctx->loc_conf[ngx_http_core_module.ctx_index]; in ngx_http_rewrite_if() 576 clcf->loc_conf = ctx->loc_conf; in ngx_http_rewrite_if() 577 clcf->name = pclcf->name; in ngx_http_rewrite_if() 578 clcf->noname = 1; in ngx_http_rewrite_if() 580 if (ngx_http_add_location(cf, &pclcf->locations, clcf) != NGX_OK) { in ngx_http_rewrite_if()
|
| H A D | ngx_http_scgi_module.c | 1267 ngx_http_core_loc_conf_t *clcf; in ngx_http_scgi_merge_loc_conf() local 1554 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); in ngx_http_scgi_merge_loc_conf() 1556 if (clcf->noname in ngx_http_scgi_merge_loc_conf() 1564 if (clcf->lmt_excpt && clcf->handler == NULL in ngx_http_scgi_merge_loc_conf() 1567 clcf->handler = ngx_http_scgi_handler; in ngx_http_scgi_merge_loc_conf() 1826 ngx_http_core_loc_conf_t *clcf; in ngx_http_scgi_pass() local 1833 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); in ngx_http_scgi_pass() 1834 clcf->handler = ngx_http_scgi_handler; in ngx_http_scgi_pass() 1871 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') { in ngx_http_scgi_pass() 1872 clcf->auto_redirect = 1; in ngx_http_scgi_pass()
|
| /f-stack/app/nginx-1.16.1/src/http/modules/perl/ |
| H A D | nginx.xs | 675 ngx_http_core_loc_conf_t *clcf; variable 707 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 711 of.read_ahead = clcf->read_ahead; 712 of.directio = clcf->directio; 713 of.valid = clcf->open_file_cache_valid; 714 of.min_uses = clcf->open_file_cache_min_uses; 715 of.errors = clcf->open_file_cache_errors; 716 of.events = clcf->open_file_cache_events; 718 if (ngx_http_set_disable_symlinks(r, clcf, &path, &of) != NGX_OK) { 722 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
|