httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: httpd-2.0/server vhost.c
Date Mon, 18 Dec 2000 02:30:32 GMT
rbb         00/12/17 18:30:32

  Modified:    .        CHANGES
               server   vhost.c
  Log:
  Get "NameVirtualHost *" option working in Apache 2.0
  
  Revision  Changes    Path
  1.10      +2 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CHANGES	2000/12/17 20:58:29	1.9
  +++ CHANGES	2000/12/18 02:30:31	1.10
  @@ -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]
   
  
  
  
  1.50      +4 -1      httpd-2.0/server/vhost.c
  
  Index: vhost.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/vhost.c,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- vhost.c	2000/12/17 23:05:24	1.49
  +++ vhost.c	2000/12/18 02:30:32	1.50
  @@ -219,7 +219,10 @@
           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 */
  
  
  

Mime
View raw message