Lines Matching defs:host

304  *    host           holder for host
313 char *addr, *scope_id, *strp, *host, *url = *urlp;
321 host = url + 2;
322 url = strchr(host, '/');
331 strp = strrchr(host, '@');
335 user = host;
336 host = strp + 1;
361 * Parse the host string to separate host portion from optional port.
364 rv = apr_parse_addr_port(&addr, &scope_id, &tmp_port, host, p);
366 return "Invalid host/port";
404 char *url, *user = NULL, *password = NULL, *err, *host = NULL;
418 err = ap_proxy_canon_netloc(r->pool, &url, &user, &password, &host, &port);
424 r->hostname = host;
426 return host; /* ought to return the port, too */
555 const char *host = proxy_get_host_of_request(r);
557 if (host == NULL) { /* oops! */
564 if (4 == sscanf(host, "%d.%d.%d.%d", &ip_addr[0], &ip_addr[1], &ip_addr[2], &ip_addr[3])) {
575 "1)IP-Match: %s[%s] <-> ", host, inet_ntoa(addr));
586 "1)IP-NoMatch: %s[%s] <-> ", host, inet_ntoa(addr));
597 if (apr_sockaddr_info_get(&reqaddr, host, APR_UNSPEC, 0, 0, r->pool)
601 "2)IP-NoMatch: hostname=%s msg=Host not found", host);
606 /* Try to deal with multiple IP addr's for a host */
613 "3)IP-Match: %s[%s] <-> ", host, inet_ntoa(*ip));
624 "3)IP-NoMatch: %s[%s] <-> ", host, inet_ntoa(*ip));
675 /* Return TRUE if host "host" is in domain "domain" */
678 const char *host = proxy_get_host_of_request(r);
681 if (host == NULL) { /* some error was logged already */
685 h_len = strlen(host);
692 while (h_len > 0 && host[h_len - 1] == '.') {
696 && strncasecmp(&host[h_len - d_len], This->name, d_len) == 0;
699 /* Return TRUE if host represents a host name */
703 char *host = This->name;
707 if (host[0] == '.') {
711 for (i = 0; apr_isalnum(host[i]) || host[i] == '-' || host[i] == '.'; ++i);
713 if (host[i] != '\0' || apr_sockaddr_info_get(&addr, host, APR_UNSPEC, 0, 0, p) != APR_SUCCESS) {
720 for (i = strlen(host) - 1; i > 0 && host[i] == '.'; --i) {
721 host[i] = '\0';
728 /* Return TRUE if host "host" is equal to host2 "host2" */
731 char *host = This->name;
736 if (host == NULL || host2 == NULL) {
741 h1_len = strlen(host);
746 /* Try to deal with multiple IP addr's for a host */
758 while (h1_len > 0 && host[h1_len - 1] == '.') {
762 && strncasecmp(host, host2, h1_len) == 0;
775 const char *host = proxy_get_host_of_request(r);
776 return host != NULL && ap_strstr_c(host, This->name) != NULL;
2251 * Break up the URL to determine the host to connect to
2254 /* we break the URL into host, port, uri */
2290 * to check host and port on the conn and be careful about
2429 /* check if ProxyBlock directive on this host */
3413 "no HTTP 0.9 request (with no host line) "
3414 "on incoming request and preserve host set "
3445 /* If USE_CANONICAL_NAME_OFF was configured for the proxy virtual host,