Lines Matching defs:hostname

169 static char* hostname_map( char* hostname );
234 char* hostname, httpd_sockaddr* sa4P, httpd_sockaddr* sa6P,
253 if ( hostname != (char*) 0 )
255 hs->binding_hostname = strdup( hostname );
258 // syslog( LOG_CRIT, "out of memory copying hostname" );
1385 /* Figure out the virtual hostname. */
1387 hc->hostname = hc->reqhost;
1389 hc->hostname = hc->hdrhost;
1398 hc->hostname = httpd_ntoa( &sa );
1401 for ( cp1 = hc->hostname; *cp1 != '\0'; ++cp1 )
1412 strlen( hc->hostname ) + 2 * VHOST_DIRLEVELS );
1413 if ( strncmp( hc->hostname, "www.", 4 ) == 0 )
1414 cp1 = &hc->hostname[4];
1416 cp1 = hc->hostname;
1419 /* Skip dots in the hostname. If we don't, then we get vhost
1422 ** of `if' for it's possible to have a hostname formed with two
1427 /* Copy a character from the hostname, or '_' if we ran out. */
1435 (void) strcpy( cp2, hc->hostname );
1437 httpd_realloc_str( &hc->hostdir, &hc->maxhostdir, strlen( hc->hostname ) );
1438 (void) strcpy( hc->hostdir, hc->hostname );
1785 hc->hostname = (char*) 0;
3053 hostname_map( char* hostname )
3058 len = strlen( hostname );
3060 if ( strncasecmp( hostname, list[n], len ) == 0 )
3086 if ( hc->hs->vhost && hc->hostname != (char*) 0 && hc->hostname[0] != '\0' )
3087 cp = hc->hostname;
3963 /* If we're vhosting, prepend the hostname to the url. This is
3970 hc->hostname == (char*) 0 ? hc->hs->server_hostname : hc->hostname,
4053 if ( hc->hs->vhost && hc->hostname != (char*) 0 )
4054 cp = hc->hostname;
4113 /* No local pattern. What's our hostname? */
4119 /* Couldn't figure out local hostname - give up. */
4124 /* We are vhosting, use the hostname on this connection. */
4125 lp = hc->hostname;
4127 /* Oops, no hostname. Maybe it's an old browser that
4129 ** the default hostname for this IP address, but it's