/httpd/support/ |
H A D | logresolve.c | 38 * Compiling NCSA HTTPD with the -DMINIMAL_DNS flag turns IP#->hostname 54 * compiled with -DMAXIMUM_DNS; after finding the hostname from the IP 55 * address, it looks up the IP addresses for the hostname and checks 208 char *hostname; local 237 hostname = (char *) apr_hash_get(cache, line, APR_HASH_KEY_STRING); 238 if (hostname) { 239 apr_file_printf(outfile, "%s %s", hostname, space + 1); 256 * the IP address into a hostname. 266 status = apr_getnameinfo(&hostname, ip, 0) != APR_SUCCESS; 267 if (status || hostname [all...] |
H A D | ab.c | 282 char *hostname; /* host name from URL */ variable 820 printf("Server Hostname: %s\n", hostname); 1097 trstring, tdstring, tdstring, hostname); 1673 connecthost = apr_pstrdup(cntxt, hostname); 1678 printf("Benchmarking %s ", hostname); 1950 "://]hostname[:port]/path\n", progname); 2049 rv = apr_parse_addr_port(&hostname, &scope_id, &port, h, cntxt); 2050 if (rv != APR_SUCCESS || !hostname || scope_id) { 2056 host_field = apr_psprintf(cntxt, "[%s]", hostname); 2059 host_field = hostname; [all...] |
/httpd/modules/cache/ |
H A D | cache_storage.c | 434 const char *hostname, *scheme; local 472 if (conf->base_uri && conf->base_uri->hostname) { 473 hostname = conf->base_uri->hostname; 476 /* Use _default_ as the hostname if none present, as in mod_vhost */ 477 hostname = ap_get_server_name(r); 478 if (!hostname) { 479 hostname = "_default_"; 483 else if (parsed_uri->hostname) { 484 /* Copy the parsed uri hostname */ [all...] |
/httpd/server/ |
H A D | listen.c | 429 ((!addr && !sa->hostname) || 430 ((addr && sa->hostname) && !strcmp(sa->hostname, addr)))) { 812 char *hostname; local 830 hostname = apr_pstrdup(p, lr->bind_addr->hostname); 832 apr_sockaddr_info_get(&sa, hostname, APR_UNSPEC, port, 0, p);
|
H A D | vhost.c | 225 const char *hostname, 233 while (hostname[0]) { 234 err = get_addresses(p, ap_getword_conf(p, &hostname), &addrs, s->port); 644 char *hostname; local 646 rv = apr_getnameinfo(&hostname, s->addrs->host_addr, 0); 648 s->server_hostname = apr_pstrdup(p, hostname); 801 /* Lowercase and remove any trailing dot and/or :port from the hostname, 804 * In most configurations the exact syntax of the hostname isn't 807 * the hostname is interpolated into the filename, we need to be sure 826 src = host_header ? host_header : r->hostname; 224 ap_parse_vhost_addrs(apr_pool_t *p, const char *hostname, server_rec *s) argument [all...] |
H A D | config.c | 2180 const char *hostname, 2216 return ap_parse_vhost_addrs(p, hostname, s); 2179 ap_init_virtual_host(apr_pool_t *p, const char *hostname, server_rec *main_server, server_rec **ps) argument
|
H A D | util.c | 1812 AP_DECLARE(char *) ap_construct_server(apr_pool_t *p, const char *hostname, argument 1816 return apr_pstrdup(p, hostname); 1819 return apr_psprintf(p, "%s:%u", hostname, port); 2265 char *hostname; local 2274 if ( (apr_getnameinfo(&hostname, sockaddr, 0) == APR_SUCCESS) && 2275 (ap_strchr_c(hostname, '.')) ) { 2276 server_hostname = apr_pstrdup(a, hostname); 2281 apr_sockaddr_ip_get(&hostname, sockaddr); 2282 server_hostname = apr_pstrdup(a, hostname);
|
/httpd/modules/ssl/ |
H A D | ssl_engine_io.c | 1126 "proxy-request-hostname"); 1182 apr_table_unset(c->notes, "proxy-request-hostname"); 1189 "for hostname %s", hostname_note); 1194 const char *hostname; local 1197 hostname = ssl_var_lookup(NULL, server, c, NULL, 1199 apr_table_unset(c->notes, "proxy-request-hostname"); 1203 match = strcasecmp(hostname, hostname_note) == 0; 1204 if (!match && strncmp(hostname, "*.", 2) == 0) { 1207 match = p && strcasecmp(p, hostname + 1) == 0; 1214 " Certificate CN: %s Requested hostname [all...] |
/httpd/modules/proxy/ |
H A D | mod_proxy.h | 101 const char *hostname; /* the hostname of this proxy */ member in struct:proxy_remote 242 apr_pool_t *pool; /* Subpool for hostname and addr data */ 243 const char *hostname; member in struct:__anon281 350 char hostname[PROXY_WORKER_MAX_HOSTNAME_SIZE]; /* remote backend address */ member in struct:__anon284 573 /** Test whether the hostname/address of the request are blocked by the ProxyBlock 577 * @param hostname hostname from request URI 578 * @param addr resolved address of hostname, or NULL if not known 582 const char *hostname, apr_sockaddr_ [all...] |
H A D | proxy_util.c | 52 const char *target_host; /* Target hostname */ 407 if (r->hostname != NULL) { 408 return r->hostname; 424 r->hostname = host; 601 "2)IP-NoMatch: hostname=%s msg=Host not found", host); 782 const char *hostname, apr_sockaddr_t *addr) 793 hostname, npent[j].name); 794 if (ap_strstr_c(hostname, npent[j].name) || npent[j].name[0] == '*') { 797 "matched", hostname, npent[j].name); 803 * not resolve the hostname 781 ap_proxy_checkproxyblock(request_rec *r, proxy_server_conf *conf, const char *hostname, apr_sockaddr_t *addr) argument 3409 const char* hostname = apr_table_get(r->headers_in,"Host"); local [all...] |
/httpd/include/ |
H A D | httpd.h | 827 const char *hostname; member in struct:request_rec 1309 /** The server hostname */ 1779 * Construct a full hostname 1781 * @param hostname The hostname of the server 1784 * @return The server's hostname 1786 AP_DECLARE(char *) ap_construct_server(apr_pool_t *p, const char *hostname,
|