Lines Matching refs:config

64     remoteip_config_t *config = apr_pcalloc(p, sizeof *config);
65 /* config->header_name = NULL;
66 * config->proxies_header_name = NULL;
68 return config;
76 remoteip_config_t *config;
78 config = (remoteip_config_t *) apr_palloc(p, sizeof(*config));
79 config->header_name = server->header_name
82 config->proxies_header_name = server->proxies_header_name
85 config->proxymatch_ip = server->proxymatch_ip
88 return config;
94 remoteip_config_t *config = ap_get_module_config(cmd->server->module_config,
96 config->header_name = arg;
103 remoteip_config_t *config = ap_get_module_config(cmd->server->module_config,
105 config->proxies_header_name = arg;
127 remoteip_config_t *config = ap_get_module_config(cmd->server->module_config,
137 if (!config->proxymatch_ip) {
138 config->proxymatch_ip = apr_array_make(cmd->pool, 1, sizeof(*match));
140 match = (remoteip_proxymatch_t *) apr_array_push(config->proxymatch_ip);
167 apr_array_push(config->proxymatch_ip);
221 remoteip_config_t *config = (remoteip_config_t *)
240 if (!config->header_name) {
244 if (config->proxymatch_ip) {
252 remote = (char *) apr_table_get(r->headers_in, config->header_name);
264 if (config->proxymatch_ip) {
267 match = (remoteip_proxymatch_t *)config->proxymatch_ip->elts;
268 for (i = 0; i < config->proxymatch_ip->nelts; ++i) {
280 if (i && i >= config->proxymatch_ip->nelts) {
322 config->header_name, parse_remote);
360 config->header_name, parse_remote);
401 apr_table_setn(r->headers_in, config->header_name,
405 apr_table_unset(r->headers_in, config->header_name);
409 if (config->proxies_header_name) {
410 apr_table_setn(r->headers_in, config->proxies_header_name,
460 NULL, /* create per-directory config structure */
461 NULL, /* merge per-directory config structures */
462 create_remoteip_server_config, /* create per-server config structure */
463 merge_remoteip_server_config, /* merge per-server config structures */