From nobody@hyperreal.com Fri May 23 01:47:56 1997 Received: (from nobody@localhost) by hyperreal.com (8.8.5/8.8.5) id BAA15956; Fri, 23 May 1997 01:47:56 -0700 (PDT) Message-Id: <199705230847.BAA15956@hyperreal.com> Date: Fri, 23 May 1997 01:47:56 -0700 (PDT) From: Martin Mares Reply-To: mj@gts.cz To: apbugs@hyperreal.com Subject: Multiple virtual hosts over single connection don't work X-Send-Pr-Version: 3.2 >Number: 610 >Category: protocol >Synopsis: Multiple virtual hosts over single connection don't work >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri May 23 01:50:00 1997 >Last-Modified: Tue May 27 05:05:06 PDT 1997 >Originator: mj@gts.cz >Organization: >Release: 1.2b10 >Environment: Linux 2.0.30, GCC 2.7.2.2 >Description: If using multiple HTTP/1.1 GET requests on single connection to retrieve data from different virtual hosts, the virtual host list is scanned starting with the most recently used VH, not with the first one which causes that most VH's are ignored. >How-To-Repeat: GET / HTTP/1.1, Host: first_virtual_host; GET / HTTP/1.1, Host: primary_server_name >Fix: Set current_conn->server back to the original value after each call to read_request from the http_main main loop >Audit-Trail: From: Dean Gaudet To: Martin Mares Subject: Re: protocol/610: Multiple virtual hosts over single connection don't work Date: Fri, 23 May 1997 07:25:31 -0700 (PDT) Yep that would be the correct fix. This whole vhost mechanism really needs an overhaul, this like bug #934561 with it. Thanks Dean State-Changed-From-To: open-closed State-Changed-By: pcs State-Changed-When: Tue May 27 05:05:06 PDT 1997 State-Changed-Why: A patch along the lines you suggested has been added to Apache for the next release (1.2b11). A full re-write of the virtual host code will probably be done after 1.2 is out. >Unformatted: