Lines Matching +refs:val +refs:server
61 const char *val)
71 worker->s->lbfactor = atoi(val);
80 ival = atoi(val);
90 ival = atoi(val);
98 ival = atoi(val);
106 ival = atoi(val);
116 ival = atoi(val);
126 if (ap_timeout_parameter_parse(val, &timeout, "ms") != APR_SUCCESS)
135 * Defaults to server timeout.
137 ival = atoi(val);
144 long s = atol(val);
152 ival = atoi(val);
160 if (!strcasecmp(val, "on"))
162 else if (!strcasecmp(val, "off"))
169 if (!strcasecmp(val, "on"))
171 else if (!strcasecmp(val, "off"))
178 if (!strcasecmp(val, "on"))
180 else if (!strcasecmp(val, "off"))
189 if (strlen(val) >= sizeof(worker->s->route))
192 PROXY_STRNCPY(worker->s->route, val);
197 if (strlen(val) >= sizeof(worker->s->redirect))
200 PROXY_STRNCPY(worker->s->redirect, val);
208 for (v = val; *v; v++) {
223 if (!strcasecmp(val, "on"))
225 else if (!strcasecmp(val, "off"))
227 else if (!strcasecmp(val, "auto"))
233 ival = atoi(val);
245 if (ap_timeout_parameter_parse(val, &timeout, "s") != APR_SUCCESS)
253 ival = atoi(val);
262 if (ap_timeout_parameter_parse(val, &timeout, "s") != APR_SUCCESS)
270 if (strlen(val) >= sizeof(worker->s->flusher))
273 PROXY_STRNCPY(worker->s->flusher, val);
285 const char *val)
295 if (strlen(val) >= sizeof(balancer->s->sticky_path))
298 PROXY_STRNCPY(balancer->s->sticky_path, val);
299 PROXY_STRNCPY(balancer->s->sticky, val);
310 if (strlen(val) != 1) {
311 if (!strcasecmp(val, "off"))
317 balancer->s->sticky_separator = *val;
325 if (!strcasecmp(val, "on"))
327 else if (!strcasecmp(val, "off"))
339 ival = atoi(val);
348 ival = atoi(val);
356 if (strlen(val) > (sizeof(balancer->s->lbpname)-1))
358 provider = ap_lookup_provider(PROXY_LBMETHOD, val, "0");
361 if (PROXY_STRNCPY(balancer->s->lbpname, val) == APR_SUCCESS) {
376 if (!strcasecmp(val, "on"))
378 else if (!strcasecmp(val, "off"))
389 val_split = apr_pstrdup(p, val);
407 if (!strcasecmp(val, "on"))
409 else if (!strcasecmp(val, "off"))
416 if (!strcasecmp(val, "None")) {
420 if (PROXY_STRNCPY(balancer->s->nonce, val) != APR_SUCCESS) {
427 ival = atoi(val);
434 if (!strcasecmp(val, "on"))
436 else if (!strcasecmp(val, "off"))
514 void *sconf = r->server->module_config;
530 r->handler = "proxy-server";
540 r->handler = "proxy-server";
556 const char *val;
569 val = apr_table_get(r->subprocess_env, var);
572 if (val == NULL) {
577 return apr_pstrcat(r->pool, firstpart, val,
685 r->handler = "proxy-server";
721 * an issue because this is a hybrid proxy/origin server.
734 conf = (proxy_server_conf *) ap_get_module_config(r->server->module_config,
752 proxy_server_conf *sconf = ap_get_module_config(r->server->module_config,
754 ap_conf_vector_t *per_dir_defaults = r->server->lookup_defaults;
932 void *sconf = r->server->module_config;
1019 "TRACE forbidden by server configuration");
1022 "TRACE forbidden by server configuration");
1062 /* Bypass ProxyRemote server lookup if configured as NoProxy */
1096 ap_proxy_initialize_worker(worker, r->server, conf->pool);
1175 /* Unrecoverable server error.
1187 /* Recoverable server error.
1447 ap_get_module_config(parms->server->module_config, &proxy_module);
1517 server_rec *s = cmd->server;
1532 return "ProxyRemoteMatch: Bad syntax for a remote proxy server";
1534 return "ProxyRemote: Bad syntax for a remote proxy server";
1543 return "ProxyRemoteMatch: Bad syntax for a remote proxy server (bad port number)";
1545 return "ProxyRemote: Bad syntax for a remote proxy server (bad port number)";
1622 server_rec *s = cmd->server;
1667 char *val = strchr(word, '=');
1668 if (!val) {
1685 *val++ = '\0';
1686 apr_table_setn(params, word, val);
1703 /* if per server, add to the alias array */
1751 elts[i].val);
1783 ap_log_error(APLOG_MARK, APLOG_INFO, 0, cmd->server, APLOGNO(01145)
1790 ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server, APLOGNO(01146)
1792 elts[i].key, elts[i].val, ap_proxy_worker_name(cmd->pool, worker));
1795 elts[i].val);
1885 server_rec *s = parms->server;
1922 server_rec *s = parms->server;
1979 ap_get_module_config(parms->server->module_config, &proxy_module);
1992 ap_get_module_config(parms->server->module_config, &proxy_module);
2029 ap_get_module_config(parms->server->module_config, &proxy_module);
2044 ap_get_module_config(parms->server->module_config, &proxy_module);
2058 ap_get_module_config(parms->server->module_config, &proxy_module);
2069 ap_get_module_config(parms->server->module_config, &proxy_module);
2086 ap_get_module_config(parms->server->module_config, &proxy_module);
2109 ap_get_module_config(parms->server->module_config, &proxy_module);
2130 ap_get_module_config(parms->server->module_config, &proxy_module);
2150 ap_get_module_config(parms->server->module_config, &proxy_module);
2165 ap_get_module_config(parms->server->module_config, &proxy_module);
2174 ap_get_module_config(parms->server->module_config, &proxy_module);
2184 ap_get_module_config(parms->server->module_config, &proxy_module);
2193 server_rec *s = cmd->server;
2215 char *val;
2217 val = strchr(word, '=');
2219 if (!val) {
2232 *val++ = '\0';
2233 apr_table_setn(params, word, val);
2239 return "BalancerMember must define remote proxy server";
2254 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, cmd->server, APLOGNO(01147)
2259 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, cmd->server, APLOGNO(01148)
2265 ap_log_error(APLOG_MARK, APLOG_INFO, 0, cmd->server, APLOGNO(01149)
2274 ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server, APLOGNO(01150)
2276 elts[i].key, elts[i].val, ap_proxy_worker_name(cmd->pool, worker));
2279 elts[i].val);
2291 server_rec *s = cmd->server;
2295 char *word, *val;
2355 val = strchr(word, '=');
2356 if (!val) {
2361 *val++ = '\0';
2363 err = set_worker_param(cmd->pool, worker, word, val);
2365 err = set_balancer_param(conf, cmd->pool, balancer, word, val);
2368 return apr_pstrcat(cmd->temp_pool, "ProxySet: ", err, " ", word, "=", val, "; ", name, NULL);
2393 char *word, *val;
2400 (proxy_server_conf *) ap_get_module_config(cmd->server->module_config, &proxy_module);
2426 /* XXX Ignore case? What if we proxy a case-insensitive server?!?
2439 conf = ap_set_config_vectors(cmd->server, new_dir_conf, cmd->path,
2455 ap_add_per_proxy_conf(cmd->server, new_dir_conf);
2508 val = strchr(word, '=');
2509 if (!val) {
2514 *val++ = '\0';
2516 err = set_worker_param(cmd->pool, worker, word, val);
2519 word, val);
2522 word, "=", val, "; ", conf->p, NULL);
2543 "a scheme, partial URL or '*' and a proxy server"),
2545 "a regex pattern and a proxy server"),
2579 "This overrides the server timeout"),
2589 "on if this server should inherit Balancers and Workers defined in the main server "
2592 "on if this server should inherit all ProxyPass directives defined in the main server "
2680 void *sconf = r->server->module_config;
2860 * This routine is called before the server processes the configuration
2918 create_proxy_config, /* create per-server config structure */
2919 merge_proxy_config, /* merge per-server config structures */