Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 68887 invoked from network); 25 Oct 2010 18:23:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Oct 2010 18:23:01 -0000 Received: (qmail 92345 invoked by uid 500); 25 Oct 2010 18:22:57 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 92327 invoked by uid 500); 25 Oct 2010 18:22:57 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 92319 invoked by uid 99); 25 Oct 2010 18:22:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 18:22:57 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.83.45] (HELO mail-gw0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 18:22:49 +0000 Received: by gwj16 with SMTP id 16so3166990gwj.18 for ; Mon, 25 Oct 2010 11:22:28 -0700 (PDT) Received: by 10.151.87.12 with SMTP id p12mr13413028ybl.425.1288030948447; Mon, 25 Oct 2010 11:22:28 -0700 (PDT) Received: from [192.168.200.166] (74-140-229-219.dhcp.insightbb.com [74.140.229.219]) by mx.google.com with ESMTPS id w3sm9000626anw.5.2010.10.25.11.22.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 Oct 2010 11:22:21 -0700 (PDT) Message-Id: From: Rich Bowen To: users@httpd.apache.org In-Reply-To: <4CC5C872.4020101@utoronto.ca> Content-Type: multipart/alternative; boundary=Apple-Mail-33-486092941 Mime-Version: 1.0 (Apple Message framework v936) Date: Mon, 25 Oct 2010 14:22:18 -0400 References: <4CC2D0A2.2050608@utoronto.ca> <4CC59D23.8090105@utoronto.ca> <4CC5AB4A.4080603@utoronto.ca> <9CA69746-F6AD-4589-B894-70BF43D0154B@rcbowen.com> <4CC5C872.4020101@utoronto.ca> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mixing dynamic and static virtual host definitions --Apple-Mail-33-486092941 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Oct 25, 2010, at 2:12 PM, Matt Price wrote: > On 10-10-25 12:23 PM, Rich Bowen wrote: >> >> On Oct 25, 2010, at 12:07 PM, Matt Price wrote: >> The solution is to put a ServerName (and possibly one or more >> ServerAlias directives) in the second VirtualHost. >> > thank you. Things seem to work now -- though I confess to being a > bit surprised that ServerName * will work in this instance. And it > would rbe nice to be able to specify a root location for requests > without a HOST header. But that will doubtless come. Thanks so much! The reason that ServerName * doesn't work is that the value of ServerName is used to generate self-referential URLs, for example when an internal redirect is generated. With * you'd end up with http://*/ redir.html which isn't valid. -- Rich Bowen rbowen@rcbowen.com http://drbacchus.com/ --Apple-Mail-33-486092941 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Oct 25, 2010, = at 2:12 PM, Matt Price wrote:

On = 10-10-25 12:23 PM, Rich Bowen wrote:

On Oct 25, = 2010, at 12:07 PM, Matt Price wrote:
The solution is to put a ServerName (and possibly one or = more ServerAlias directives) in the second = VirtualHost.

thank you.  Things seem to work now = -- though I confess to being a bit surprised that ServerName * will work = in this instance.  And it would rbe nice to be able to specify a = root location for requests without a HOST header.  But that will = doubtless come.  Thanks so = much!

The reason that = ServerName * doesn't work is that the value of ServerName is used to = generate self-referential URLs, for example when an internal redirect is = generated. With * you'd end up with http://*/redir.html which isn't = valid.= --Apple-Mail-33-486092941--