From: Ryan Bloom Date: Mon, 18 Dec 2000 02:30:32 +0000 (+0000) Subject: Get "NameVirtualHost *" option working in Apache 2.0 X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~416 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0765fdc7ad87a94933f53afbf11f5155bd1d055;p=apache Get "NameVirtualHost *" option working in Apache 2.0 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87393 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 21c1b79d81..bb5c9d8b8c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,6 @@ Changes with Apache 2.0b1 + *) Get "NameVirtualHost *" working in 2.0. [Ryan Bloom] + *) Return HTTP_RANGE_NOT_SATISFIABLE if the every range requested starts after the end of the response. [Ryan Bloom] diff --git a/server/vhost.c b/server/vhost.c index 5b4cb1ee65..57d383a703 100644 --- a/server/vhost.c +++ b/server/vhost.c @@ -219,7 +219,10 @@ static const char *get_addresses(apr_pool_t *p, const char *w_, port = default_port; } - if (strcasecmp(host, "_default_") == 0 + if (strcmp(host, "*") == 0) { + rv = apr_getaddrinfo(&my_addr, NULL, APR_INET, port, 0, p); + my_addr->sa.sin.sin_addr.s_addr = htonl(INADDR_ANY); + } else if (strcasecmp(host, "_default_") == 0 || strcmp(host, "255.255.255.255") == 0) { rv = apr_getaddrinfo(&my_addr, NULL, APR_INET, port, 0, p); ap_assert(rv == APR_SUCCESS); /* must be bug or out of storage */