httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@zyzzyva.com>
Subject Re: more problems with Host:'s
Date Sat, 28 Sep 1996 15:31:53 GMT
This doesn't look right to me. s is being initialized to s->next?
next is being initialized to NULL.

void check_serverpath (request_rec *r) {
  server_rec *s; 
    
  /* This is in conjunction with the ServerPath code in
   * http_core, so we get the right host attached to a non-
   * Host-sending request.
   */
  
  for (s = r->server->next; s; s = s->next) {
    if (s->path && !strncmp(r->uri, s->path, s->pathlen))
      r->server = r->connection->server = s;
  }
}   
    

> 
> Something is really screwy here.
> 
> Go to http://hyperreal.com/ through Netscape: great, looks gorgeous
> 
> telnet to hyperreal.com port 80, and issue a 
> 
>   GET / HTTP/1.0
> 
> with no other headers, and I get the home page for one of the Host:-header
> based home pages, www.grooveneedle.com, which happens to be the last
> Host:-header-based vhost section in my httpd.conf.  If I use a Host: header
> everything works as it should.  Anyone have any ideas?
> 
> 	Brian
> 
> 
> --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
> brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS




Mime
View raw message