Lines Matching refs:conf

77 /* valid in core-conf, but not in runtime r->used_path_info */
139 core_dir_config *conf;
141 conf = (core_dir_config *)apr_pcalloc(a, sizeof(core_dir_config));
143 /* conf->r and conf->d[_*] are initialized by dirsection() or left NULL */
145 conf->opts = dir ? OPT_UNSET : OPT_UNSET|OPT_SYM_LINKS;
146 conf->opts_add = conf->opts_remove = OPT_NONE;
147 conf->override = OR_UNSET|OR_NONE;
148 conf->override_opts = OPT_UNSET | OPT_ALL | OPT_SYM_OWNER | OPT_MULTI;
150 conf->content_md5 = AP_CONTENT_MD5_UNSET;
151 conf->accept_path_info = AP_ACCEPT_PATHINFO_UNSET;
153 conf->use_canonical_name = USE_CANONICAL_NAME_UNSET;
154 conf->use_canonical_phys_port = USE_CANONICAL_PHYS_PORT_UNSET;
156 conf->hostname_lookups = HOSTNAME_LOOKUP_UNSET;
160 * conf->limit_cpu = NULL;
161 * conf->limit_mem = NULL;
162 * conf->limit_nproc = NULL;
163 * conf->sec_file = NULL;
164 * conf->sec_if = NULL;
167 conf->limit_req_body = AP_LIMIT_REQ_BODY_UNSET;
168 conf->limit_xml_body = AP_LIMIT_UNSET;
170 conf->server_signature = srv_sig_unset;
172 conf->add_default_charset = ADD_DEFAULT_CHARSET_UNSET;
173 conf->add_default_charset_name = DEFAULT_ADD_DEFAULT_CHARSET_NAME;
177 * conf->mime_type = NULL;
178 * conf->handler = NULL;
179 * conf->output_filters = NULL;
180 * conf->input_filters = NULL;
186 conf->etag_bits = ETAG_UNSET;
187 conf->etag_add = ETAG_UNSET;
188 conf->etag_remove = ETAG_UNSET;
190 conf->enable_mmap = ENABLE_MMAP_UNSET;
191 conf->enable_sendfile = ENABLE_SENDFILE_UNSET;
192 conf->allow_encoded_slashes = 0;
193 conf->decode_encoded_slashes = 0;
195 conf->max_ranges = AP_MAXRANGES_UNSET;
196 conf->max_overlaps = AP_MAXRANGES_UNSET;
197 conf->max_reversals = AP_MAXRANGES_UNSET;
199 conf->cgi_pass_auth = AP_CGI_PASS_AUTH_UNSET;
201 return (void *)conf;
208 core_dir_config *conf;
210 /* Create this conf by duplicating the base, replacing elements
213 conf = (core_dir_config *)apr_pmemdup(a, base, sizeof(core_dir_config));
215 conf->d = new->d;
216 conf->d_is_fnmatch = new->d_is_fnmatch;
217 conf->d_components = new->d_components;
218 conf->r = new->r;
219 conf->refs = new->refs;
220 conf->condition = new->condition;
226 conf->opts_add = (conf->opts_add & ~new->opts_remove) | new->opts_add;
227 conf->opts_remove = (conf->opts_remove & ~new->opts_add)
229 conf->opts = (conf->opts & ~conf->opts_remove) | conf->opts_add;
238 conf->opts &= ~OPT_INC_WITH_EXEC;
245 conf->opts = new->opts;
246 conf->opts_add = new->opts_add;
247 conf->opts_remove = new->opts_remove;
251 conf->override = new->override;
255 conf->override_opts = new->override_opts;
259 conf->override_list = new->override_list;
262 if (conf->response_code_exprs == NULL) {
263 conf->response_code_exprs = new->response_code_exprs;
266 conf->response_code_exprs = apr_hash_overlay(a,
267 new->response_code_exprs, conf->response_code_exprs);
273 conf->hostname_lookups = new->hostname_lookups;
277 conf->content_md5 = new->content_md5;
281 conf->accept_path_info = new->accept_path_info;
285 conf->use_canonical_name = new->use_canonical_name;
289 conf->use_canonical_phys_port = new->use_canonical_phys_port;
294 conf->limit_cpu = new->limit_cpu;
300 conf->limit_mem = new->limit_mem;
306 conf->limit_nproc = new->limit_nproc;
311 conf->limit_req_body = new->limit_req_body;
315 conf->limit_xml_body = new->limit_xml_body;
317 if (!conf->sec_file) {
318 conf->sec_file = new->sec_file;
323 conf->sec_file = apr_array_append(a, base->sec_file, new->sec_file);
328 if (!conf->sec_if) {
329 conf->sec_if = new->sec_if;
334 conf->sec_if = apr_array_append(a, base->sec_if, new->sec_if);
340 conf->server_signature = new->server_signature;
344 conf->add_default_charset = new->add_default_charset;
345 conf->add_default_charset_name = new->add_default_charset_name;
351 conf->mime_type = new->mime_type;
355 conf->handler = new->handler;
359 conf->output_filters = new->output_filters;
363 conf->input_filters = new->input_filters;
370 conf->etag_add =
371 (conf->etag_add & (~ new->etag_remove)) | new->etag_add;
372 conf->etag_remove =
373 (conf->etag_remove & (~ new->etag_add)) | new->etag_remove;
374 conf->etag_bits =
375 (conf->etag_bits & (~ conf->etag_remove)) | conf->etag_add;
378 conf->etag_bits = new->etag_bits;
379 conf->etag_add = new->etag_add;
380 conf->etag_remove = new->etag_remove;
383 if (conf->etag_bits != ETAG_NONE) {
384 conf->etag_bits &= (~ ETAG_NONE);
388 conf->enable_mmap = new->enable_mmap;
392 conf->enable_sendfile = new->enable_sendfile;
396 conf->allow_encoded_slashes = new->allow_encoded_slashes;
399 conf->decode_encoded_slashes = new->decode_encoded_slashes;
403 if (!conf->log) {
404 conf->log = new->log;
407 conf->log = ap_new_log_config(a, new->log);
408 ap_merge_log_config(base->log, conf->log);
412 conf->max_ranges = new->max_ranges != AP_MAXRANGES_UNSET ? new->max_ranges : base->max_ranges;
413 conf->max_overlaps = new->max_overlaps != AP_MAXRANGES_UNSET ? new->max_overlaps : base->max_overlaps;
414 conf->max_reversals = new->max_reversals != AP_MAXRANGES_UNSET ? new->max_reversals : base->max_reversals;
416 conf->cgi_pass_auth = new->cgi_pass_auth != AP_CGI_PASS_AUTH_UNSET ? new->cgi_pass_auth : base->cgi_pass_auth;
418 return (void*)conf;
435 core_server_config *conf;
438 conf = (core_server_config *)apr_pcalloc(a, sizeof(core_server_config));
443 conf->ap_document_root = DOCUMENT_LOCATION;
444 conf->access_name = DEFAULT_ACCESS_FNAME;
447 conf->accf_map = apr_table_make(a, 5);
449 apr_table_setn(conf->accf_map, "http", ACCEPT_FILTER_NAME);
450 apr_table_setn(conf->accf_map, "https", "dataready");
452 apr_table_setn(conf->accf_map, "http", "data");
453 apr_table_setn(conf->accf_map, "https", "data");
458 conf->ap_document_root = NULL;
459 conf->access_name = NULL;
460 conf->accf_map = NULL;
466 conf->sec_dir = apr_array_make(a, 40, sizeof(ap_conf_vector_t *));
467 conf->sec_url = apr_array_make(a, 40, sizeof(ap_conf_vector_t *));
470 conf->gprof_dir = NULL;
473 conf->redirect_limit = 0;
474 conf->subreq_limit = 0;
476 conf->protocol = NULL;
479 conf->trace_enable = AP_TRACE_UNSET;
481 return (void *)conf;
488 core_server_config *conf = (core_server_config *)
492 conf->ap_document_root = virt->ap_document_root;
495 conf->access_name = virt->access_name;
498 conf->sec_dir = apr_array_append(p, base->sec_dir, virt->sec_dir);
499 conf->sec_url = apr_array_append(p, base->sec_url, virt->sec_url);
502 conf->redirect_limit = virt->redirect_limit;
505 conf->subreq_limit = virt->subreq_limit;
508 conf->trace_enable = virt->trace_enable;
511 conf->http09_enable = virt->http09_enable;
514 conf->http_conformance = virt->http_conformance;
517 conf->http_cl_head_zero = virt->http_cl_head_zero;
520 conf->http_expect_strict = virt->http_expect_strict;
525 conf->protocol = virt->protocol;
528 conf->gprof_dir = virt->gprof_dir;
531 conf->error_log_format = virt->error_log_format;
534 conf->error_log_conn = virt->error_log_conn;
537 conf->error_log_req = virt->error_log_req;
540 if (!conf->conn_log_level) {
541 conf->conn_log_level = virt->conn_log_level;
545 conf->conn_log_level = apr_array_append(p, conf->conn_log_level,
550 conf->merge_trailers = (virt->merge_trailers != AP_MERGE_TRAILERS_UNSET)
554 return conf;
577 AP_CORE_DECLARE(void) ap_add_file_conf(apr_pool_t *p, core_dir_config *conf,
582 if (!conf->sec_file)
583 conf->sec_file = apr_array_make(p, 2, sizeof(ap_conf_vector_t *));
585 new_space = (void **)apr_array_push(conf->sec_file);
590 core_dir_config *conf,
596 if (!conf->sec_if) {
597 conf->sec_if = apr_array_make(p, 2, sizeof(ap_conf_vector_t *));
601 if (conf->sec_if->nelts > 0) {
603 ap_conf_vector_t *lastelt = APR_ARRAY_IDX(conf->sec_if,
604 conf->sec_if->nelts - 1,
615 new_space = (void **)apr_array_push(conf->sec_if);
717 core_dir_config *conf =
720 return conf->opts;
725 core_dir_config *conf;
726 conf = (core_dir_config *)ap_get_core_module_config(r->per_dir_config);
728 return conf->override;
785 core_request_config *conf = ap_get_core_module_config(r->request_config);
786 if (conf->context_prefix)
787 return conf->context_prefix;
794 core_request_config *conf = ap_get_core_module_config(r->request_config);
795 if (conf->context_document_root)
796 return conf->context_document_root;
803 core_request_config *conf = ap_get_core_module_config(r->request_config);
804 conf->document_root = document_root;
810 core_request_config *conf = ap_get_core_module_config(r->request_config);
812 conf->context_prefix = context_prefix;
814 conf->context_document_root = context_document_root;
1132 * Commands... this module handles almost all of the NCSA httpd.conf
1133 * commands, but most of the old srm.conf is in the the modules.
1215 core_server_config *conf = ap_get_core_module_config(sconf);
1222 conf->access_name = apr_pstrdup(cmd->pool, arg);
1446 core_server_config *conf = ap_get_core_module_config(sconf);
1453 conf->gprof_dir = arg;
1482 core_server_config *conf = ap_get_core_module_config(sconf);
1491 conf->ap_document_root = arg;
1502 if (apr_filepath_merge((char**)&conf->ap_document_root, NULL, arg,
1510 conf->ap_document_root = arg;
1524 core_request_config *conf = ap_get_core_module_config(r->request_config);
1527 if (conf->response_code_strings == NULL) {
1528 conf->response_code_strings =
1530 sizeof(*conf->response_code_strings) * RESPONSE_CODES);
1535 conf->response_code_strings[idx] =
1543 core_dir_config *conf = conf_;
1579 if (conf->response_code_exprs == NULL) {
1580 conf->response_code_exprs = apr_hash_make(cmd->pool);
1587 apr_hash_set(conf->response_code_exprs,
1612 apr_hash_set(conf->response_code_exprs,
2201 core_dir_config *conf;
2259 conf = ap_set_config_vectors(cmd->server, new_dir_conf, cmd->path,
2266 conf->r = r;
2267 conf->d = cmd->path;
2268 conf->d_is_fnmatch = (apr_fnmatch_test(conf->d) != 0);
2271 conf->refs = apr_array_make(cmd->pool, 8, sizeof(char *));
2272 ap_regname(r, conf->refs, AP_REG_MATCH, 1);
2279 if (strcmp(conf->d, "/") == 0)
2280 conf->d_components = 0;
2282 conf->d_components = ap_count_dirs(conf->d);
2303 core_dir_config *conf;
2340 conf = ap_set_config_vectors(cmd->server, new_url_conf, cmd->path,
2347 conf->d = apr_pstrdup(cmd->pool, cmd->path); /* No mangling, please */
2348 conf->d_is_fnmatch = apr_fnmatch_test(conf->d) != 0;
2349 conf->r = r;
2352 conf->refs = apr_array_make(cmd->pool, 8, sizeof(char *));
2353 ap_regname(r, conf->refs, AP_REG_MATCH, 1);
2375 core_dir_config *conf;
2427 conf = ap_set_config_vectors(cmd->server, new_file_conf, cmd->path,
2434 conf->d = cmd->path;
2435 conf->d_is_fnmatch = apr_fnmatch_test(conf->d) != 0;
2436 conf->r = r;
2439 conf->refs = apr_array_make(cmd->pool, 8, sizeof(char *));
2440 ap_regname(r, conf->refs, AP_REG_MATCH, 1);
2466 core_dir_config *conf;
2494 conf = ap_set_config_vectors(cmd->server, new_if_conf, cmd->path,
2498 conf->condition_ifelse = AP_CONDITION_IF;
2500 conf->condition_ifelse = AP_CONDITION_ELSEIF;
2502 conf->condition_ifelse = AP_CONDITION_ELSE;
2506 if (conf->condition_ifelse == AP_CONDITION_ELSE) {
2514 conf->condition = ap_expr_parse_cmd(cmd, condition, 0, &expr_err, NULL);
2524 conf->d = cmd->path;
2525 conf->d_is_fnmatch = 0;
2526 conf->r = NULL;
2681 /* httpd.conf commands... beginning with the <VirtualHost> business */
2763 core_server_config *conf =
2775 apr_table_setn(conf->accf_map, proto, accf);
2782 core_server_config *conf = ap_get_core_module_config(s->module_config);
2783 return conf->protocol;
2788 core_server_config *conf = ap_get_core_module_config(s->module_config);
2789 conf->protocol = proto;
2796 core_server_config *conf =
2806 conf->protocol = proto;
3238 core_dir_config *conf;
3240 conf = (core_dir_config *)ap_get_core_module_config(r->per_dir_config);
3241 if ((conf->server_signature == srv_sig_off)
3242 || (conf->server_signature == srv_sig_unset)) {
3248 if (conf->server_signature == srv_sig_withmail) {
3474 core_dir_config *conf = conf_;
3477 if (APR_SUCCESS != apr_strtoff(&conf->limit_req_body, arg, &errp, 10)) {
3480 if (*errp || conf->limit_req_body < 0) {
3490 core_dir_config *conf = conf_;
3492 conf->limit_xml_body = atol(arg);
3493 if (conf->limit_xml_body < 0)
3501 core_dir_config *conf = conf_;
3520 conf->max_ranges = val;
3527 core_dir_config *conf = conf_;
3546 conf->max_overlaps = val;
3553 core_dir_config *conf = conf_;
3572 conf->max_reversals = val;
3579 core_dir_config *conf;
3581 conf = ap_get_core_module_config(r->per_dir_config);
3582 if (conf->limit_xml_body == AP_LIMIT_UNSET)
3585 return (apr_size_t)conf->limit_xml_body;
3603 core_dir_config *conf = conf_;
3605 ap_unixd_set_rlimit(cmd, &conf->limit_cpu, arg, arg2, RLIMIT_CPU);
3614 core_dir_config *conf = conf_;
3617 ap_unixd_set_rlimit(cmd, &conf->limit_mem, arg, arg2 ,RLIMIT_AS);
3619 ap_unixd_set_rlimit(cmd, &conf->limit_mem, arg, arg2, RLIMIT_DATA);
3621 ap_unixd_set_rlimit(cmd, &conf->limit_mem, arg, arg2, RLIMIT_VMEM);
3632 core_dir_config *conf = conf_;
3634 ap_unixd_set_rlimit(cmd, &conf->limit_nproc, arg, arg2, RLIMIT_NPROC);
3642 core_server_config *conf =
3655 conf->redirect_limit = limit;
3670 conf->subreq_limit = limit;
3704 core_server_config *conf =
3708 int rlimit = conf->redirect_limit
3709 ? conf->redirect_limit
3711 int slimit = conf->subreq_limit
3712 ? conf->subreq_limit
3765 core_server_config *conf =
3769 conf->trace_enable = AP_TRACE_ENABLE;
3772 conf->trace_enable = AP_TRACE_DISABLE;
3775 conf->trace_enable = AP_TRACE_EXTENDED;
3787 core_server_config *conf =
3793 conf->http09_enable = AP_HTTP09_ENABLE;
3795 conf->http09_enable = AP_HTTP09_DISABLE;
3802 conf->http_conformance = AP_HTTP_CONFORMANCE_STRICT;
3804 conf->http_conformance = AP_HTTP_CONFORMANCE_STRICT|
3807 conf->http_conformance = AP_HTTP_CONFORMANCE_LIBERAL;
3812 if ((conf->http_conformance & AP_HTTP_CONFORMANCE_STRICT) &&
3813 (conf->http_conformance & AP_HTTP_CONFORMANCE_LIBERAL)) {
3820 static const char *set_http_method(cmd_parms *cmd, void *conf, const char *arg)
3831 core_server_config *conf =
3835 conf->http_cl_head_zero = AP_HTTP_CL_HEAD_ZERO_ENABLE;
3837 conf->http_cl_head_zero = AP_HTTP_CL_HEAD_ZERO_DISABLE;
3844 core_server_config *conf =
3848 conf->http_expect_strict = AP_HTTP_EXPECT_STRICT_ENABLE;
3850 conf->http_expect_strict = AP_HTTP_EXPECT_STRICT_DISABLE;
4106 core_server_config *conf =
4110 conf->error_log_format = parse_errorlog_string(cmd->pool, arg1,
4114 if (!conf->error_log_conn) {
4115 conf->error_log_conn = apr_array_make(cmd->pool, 5,
4121 e = (apr_array_header_t **) apr_array_push(conf->error_log_conn);
4126 if (!conf->error_log_req) {
4127 conf->error_log_req = apr_array_make(cmd->pool, 5,
4133 e = (apr_array_header_t **) apr_array_push(conf->error_log_req);
4158 core_server_config *conf = ap_get_module_config(cmd->server->module_config,
4160 conf->merge_trailers = (arg ? AP_MERGE_TRAILERS_ENABLE :
4515 core_dir_config *conf =
4520 if (conf->mime_type && strcmp(conf->mime_type, "none"))
4521 ap_set_content_type(r, (char*) conf->mime_type);
4523 if (conf->handler && strcmp(conf->handler, "none"))
4524 r->handler = conf->handler;
4538 && (conf->accept_path_info != AP_ACCEPT_PATHINFO_UNSET)) {
4540 r->used_path_info = conf->accept_path_info;
4801 core_dir_config *conf = (core_dir_config *)
4803 const char *filter, *filters = conf->output_filters;
4811 filters = conf->input_filters;
4941 conn_log_config *conf;
4946 conf = APR_ARRAY_IDX(sconf->conn_log_level, i, conn_log_config *);
4947 if (apr_ipsubnet_test(conf->subnet, c->client_addr))
4948 log = &conf->log;