httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [BUG]/[PATCH] v-hosts w/ the same name & on different ports aren't distinguished
Date Tue, 27 May 1997 10:16:50 GMT
+1 as well
Roy T. Fielding wrote:
> 
> +1 on the new patch.
> 
> ....Roy
> 
> >*** http_protocol.c.orig	Sun May 18 16:40:03 1997
> >--- http_protocol.c	Sun May 18 17:07:11 1997
> >***************
> >*** 711,717 ****
> >  
> >      /* search all the names from <VirtualHost> directive */
> >      for( sar = s->addrs; sar; sar = sar->next ) {
> >!       if( !strcasecmp( sar->virthost, host ) ) {
> >  	r->server = r->connection->server = s;
> >  	if( r->hostlen && !strncmp( r->uri, "http://", 7) ) {
> >  	  r->uri += r->hostlen;
> >--- 711,718 ----
> >  
> >      /* search all the names from <VirtualHost> directive */
> >      for( sar = s->addrs; sar; sar = sar->next ) {
> >!       if( !strcasecmp( sar->virthost, host )
> >!           && ( (sar->host_port == 0) || (port == sar->host_port)
) ) {
> >  	r->server = r->connection->server = s;
> >  	if( r->hostlen && !strncmp( r->uri, "http://", 7) ) {
> >  	  r->uri += r->hostlen;
> 


-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
                  "Not the Craw... the CRAW!"

Mime
View raw message