You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1996/09/28 17:31:53 UTC
Re: more problems with Host:'s
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