Lines Matching defs:url
58 static int proxy_balancer_canon(request_rec *r, char *url)
66 if (strncasecmp(url, "balancer:", 9) == 0) {
67 url += 9;
73 ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r, "canonicalising URL %s", url);
78 err = ap_proxy_canon_netloc(r->pool, &url, NULL, NULL, &host, &port);
82 url, err);
91 path = url; /* this is the raw path */
94 path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0,
142 static char *get_path_param(apr_pool_t *pool, char *url,
151 for (path = strstr(url, name); path; path = strstr(path + 1, name)) {
273 char **url)
279 /* Try to find the sticky route inside url */
280 *route = get_path_param(r->pool, *url, balancer->s->sticky_path, balancer->s->scolonsep);
387 char **url)
389 const char *scheme = strstr(*url, "://");
398 "missing worker. URI cannot be parsed: ", *url,
402 *url = apr_pstrcat(r->pool, worker->s->name, path, NULL);
456 proxy_server_conf *conf, char **url)
465 /* Step 1: check if the url is for us
466 * The url we can handle starts with 'balancer://'
471 !(*balancer = ap_proxy_get_balancer(r->pool, conf, *url, 1)))
491 runtime = find_session_route(*balancer, r, &route, &sticky, url);
597 /* Rewrite the url from 'balancer://url'
598 * to the 'worker_scheme://worker_hostname[:worker_port]/url'
602 access_status = rewrite_url(r, *worker, url);
616 (*balancer)->s->name, (*worker)->s->name, *url);