Lines Matching refs:uri

382     const char *uri = ap_escape_html(r->pool, r->uri);
386 uri, "\">", ap_escape_html(r->pool, r->method), " ", uri,
397 r->uri);
412 if ((url = strchr(r->uri, ':')) == NULL || url[1] != '/' || url[2] != '/') {
850 * XXX FIXME: Ensure the /uri component is a case sensitive match
1087 char *c, *uri = apr_pstrdup(p, url);
1091 c = strchr(uri, ':');
1095 /* remove path from uri */
1099 ap_str_tolower(uri);
1100 hash.def = ap_proxy_hashfunc(uri, PROXY_HASHFUNC_DEFAULT);
1101 hash.fnv = ap_proxy_hashfunc(uri, PROXY_HASHFUNC_FNV);
1148 char *c, *q, *uri = apr_pstrdup(p, url);
1153 c = strchr(uri, ':');
1156 /* remove path from uri */
1160 ap_str_tolower(uri);
1184 if (PROXY_STRNCPY(bshared->name, uri) != APR_SUCCESS) {
1185 return apr_psprintf(p, "balancer name (%s) too long", uri);
1660 apr_uri_t uri, urisock;
1681 rv = apr_uri_parse(p, url, &uri);
1686 if (!uri.scheme) {
1690 if (!uri.hostname) {
1692 uri.hostname = "localhost";
1699 ap_str_tolower(uri.hostname);
1701 ap_str_tolower(uri.scheme);
1737 if (uri.port && uri.port == ap_proxy_port_of_scheme(uri.scheme)) {
1738 uri.port = 0;
1740 ptr = apr_uri_unparse(p, &uri, APR_URI_UNP_REVEALPASSWORD);
1745 if (PROXY_STRNCPY(wshared->scheme, uri.scheme) != APR_SUCCESS) {
1746 return apr_psprintf(p, "worker scheme (%s) too long", uri.scheme);
1748 if (PROXY_STRNCPY(wshared->hostname, uri.hostname) != APR_SUCCESS) {
1749 return apr_psprintf(p, "worker hostname (%s) too long", uri.hostname);
1751 wshared->port = uri.port;
2238 apr_uri_t *uri,
2254 /* we break the URL into host, port, uri */
2255 if (APR_SUCCESS != apr_uri_parse(p, *url, uri)) {
2260 if (!uri->port) {
2261 uri->port = ap_proxy_port_of_scheme(uri->scheme);
2265 "connecting %s to %s:%d", *url, uri->hostname, uri->port);
2278 *url = apr_pstrcat(p, uri->path, uri->query ? "?" : "",
2279 uri->query ? uri->query : "",
2280 uri->fragment ? "#" : "",
2281 uri->fragment ? uri->fragment : "", NULL);
2302 uri->scheme, conn->uds_path);
2308 uri->scheme, uds_path);
2341 forward->target_host = apr_pstrdup(conn->pool, uri->hostname);
2342 forward->target_port = uri->port;
2359 conn->hostname = apr_pstrdup(conn->pool, uri->hostname);
2360 conn->port = uri->port;
2430 if (OK != ap_proxy_checkproxyblock(r, conf, uri->hostname,
3336 apr_uri_t *uri,
3389 if (ap_strchr_c(uri->hostname, ':')) { /* if literal IPv6 address */
3390 if (uri->port_str && uri->port != DEFAULT_HTTP_PORT) {
3391 buf = apr_pstrcat(p, "Host: [", uri->hostname, "]:",
3392 uri->port_str, CRLF, NULL);
3394 buf = apr_pstrcat(p, "Host: [", uri->hostname, "]", CRLF, NULL);
3397 if (uri->port_str && uri->port != DEFAULT_HTTP_PORT) {
3398 buf = apr_pstrcat(p, "Host: ", uri->hostname, ":",
3399 uri->port_str, CRLF, NULL);
3401 buf = apr_pstrcat(p, "Host: ", uri->hostname, CRLF, NULL);
3415 "forcing hostname to be %s for uri %s",
3416 hostname, r->uri);