httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@c2.org
Subject Re: more problems with Host:'s
Date Sat, 28 Sep 1996 22:10:37 GMT
> 
> Yeah, isn't that what I said?

	No, you said it was being initialized to "s->next", not
"r->server->next".  I thought you meant "r->server->next", but I
wasn't sure.

	I think I asked about this earlier and Alexei said "no no it
really should be r->server->next". 

> 
> 
> > 	The problem I have with this code is that s is being
> > initialized to r->server->next. Shouldn't it be initialized to
> > r->server ?
> > 
> > > 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
> > > 
> > > 
> > > 
> > 
> > 
> > -- 
> > Sameer Parekh					Voice:   510-986-8770
> > C2Net						FAX:     510-986-8777
> > The Internet Privacy Provider
> > http://www.c2.net/				sameer@c2.net
> 
> 
> 


-- 
Sameer Parekh					Voice:   510-986-8770
C2Net						FAX:     510-986-8777
The Internet Privacy Provider
http://www.c2.net/				sameer@c2.net

Mime
View raw message